Hi,
I tried to add the following user as root:
mysql> GRANT ALL ON testDB.* TO forum@'%' IDENTIFIED BY "password";
However, how come I cannot connect to testDB using my new user with a password? But without typing password, the connection is successful?
C:\mysql\bin>mysql -u forum -ppassword testDB
ERROR 1045: Access denied for user: 'forum@localhost' (Using password: YES)
C:\mysql\bin>mysql -u forum
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 29 to server version: 4.0.15-nt
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
I tried to add the following user as root:
mysql> GRANT ALL ON testDB.* TO forum@'%' IDENTIFIED BY "password";
However, how come I cannot connect to testDB using my new user with a password? But without typing password, the connection is successful?
C:\mysql\bin>mysql -u forum -ppassword testDB
ERROR 1045: Access denied for user: 'forum@localhost' (Using password: YES)
C:\mysql\bin>mysql -u forum
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 29 to server version: 4.0.15-nt
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>