The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

I am not very sure about WEBMIN functionalities
However jalex , giving the rights is one thing.
But in order to activate the user account , one needs to use FLUSH-PRIVILEGES at mysql prompt(Just try that)

Also , check out your table "user" in DB "mysql" (at myqsl prompt) and see whether it has the new entry ( u added via webmin ) with all flags set to 'Y'

the problem in not from mysql, mysql username or password becouse i can connect to the database with these username and password from ssh command line (mysql -u username -p userpass) and also i can connect and make opperations on the database from a cgi script..

There's a few bug reports relating to the problem you are having on http://bugs.php.net
The first thing to do is upgrade PHP to the latest stable version, 4.3.10 just to rule out any old PHP bugs that may have since been fixed.
If that doesn't fix it then the problem may be with the mysql library itself, search the bugs and see if anything suggested there helps. (but people have had the exact same problem as you before, seems like upgrading your 'stuff' in general is the best solution )

There's a few bug reports realting to the problem you are having on http://bugs.php.net
The first thing to do is upgrade PHP to the latest stable version, 4.3.10 just to rule out any old PHP bugs that may have since been fixed.
If that doesn't fix it then the problem may be with the mysql library itself, search the bugs and see if anything suggested there helps. (but people have had the exact same problem as you before, seems like upgrading your 'stuff' in general is the best solution )