You should issue the GRANT first - before you attempt to connect to the database.
The MySQL user authentication is actually managed in the mysql database - e.g. your list of users is in mysql.user.
Note that if you manipulate the mysql.* tables the changes do not take effect until you issue a reload.
Regards,
Jeff
In reply to Re: Create new user in MySQL
by jaa
in thread Create new user in MySQL
by gmishra
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |