hi everyone,
I am trying to connect to a new mysql installation. I have given root
permission to connect to all databases from anywhere;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'passwd' WITH
GRANT OPTION;
I can log on locally by specifying the host name:
[me@au101 me]$ mysql -h 127.0.0.1 -u root -p test
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 5.0.18-standard
However, when I try to log in locally without specifying the host name
I receive the following error:
[me@au101 me]$ mysql -u root -p mysql
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (2)
If I try to connect remotely as root using MySQLyog I receive a similar
error message:
Access denied for user root@[my ip]
Any assistance would be appreciated.
cheers,
eddiec :-)