For some reason I can only log in as root to MySQL on a redhat system. I went in as root and created a database, added users to the user and db databases, but still cannot connect as any other user other than root in telnet, and also cannot connect through Perl scripts. Have I missed something out?...
1. I connected with mysql -p mysql and entered password
2. create database myDataBase;
OK
3. Show databases;
They came up - all is well.
4. Insert into user (host, user, password) values ('%', 'my_username', password('my_password'));
Query QK. 1 row affected (0.02 sec)
5. Insert into db values ('%', 'myDataBase', 'my_username', 'y','y','y','y','y','y','y','y','y','y');
Query OK, 1 row affecred.
6. flush privileges;
Query OK, 0 rows affected
1. I connected with mysql -p mysql and entered password
2. create database myDataBase;
OK
3. Show databases;
They came up - all is well.
4. Insert into user (host, user, password) values ('%', 'my_username', password('my_password'));
Query QK. 1 row affected (0.02 sec)
5. Insert into db values ('%', 'myDataBase', 'my_username', 'y','y','y','y','y','y','y','y','y','y');
Query OK, 1 row affecred.
6. flush privileges;
Query OK, 0 rows affected