Hello
Gr8 tutorial but i'm getting errors while trying to connect to mysql
Code:
/opt/bin/mysqladmin -u admin password '********'
/opt/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'admin'@'localhost' (using password: YES)'
[admin@router root]$ mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[admin@router init.d]$ /opt/bin/mysqladmin -u root -p '********'
Enter password:
/opt/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: YES)'
and my config of my.cnf
Code:
# The following options will be passed to all MySQL clients
[client]
password = ********
port = 3306
socket = /tmp/mysql.sock
# The MySQL server
[mysqld]
user = admin
datadir = /opt/var/lib/mysql
port = 3306
socket = /tmp/mysql.sock
[mysql.server]
user=root
As you can see i was trying to connect to mysql wit admin and root username and it didn't help. What could be wrong?