I m 试图通过<代码>brew 安装我的sql 5.1.52,在Mac os 10.6上安装MySQL。
Everything goes well and I am also successful with the mysql_install_db
.
However when I try to connect to the server using:
/usr/local/Cellar/mysql/5.1.52/bin/mysqladmin -u root password mypass
我收到了:
/usr/local/Cellar/mysql/5.1.52/bin/mysqladmin: connect to server at localhost failed error: Access denied for user root @ localhost (using password: NO)
I ve tried to access mysqladmin or mysql using -u root -proot
as well,
but it doesn t work with or without password.
这是一家品牌新机器上的新安装,只要我知道新的安装工作,就不必一根根本密码即可进入。 我还努力:
/usr/local/Cellar/mysql/5.1.52/bin/mysql_secure_installation
但我也这样做。
ERROR 1045 (28000): Access denied for user root @ localhost (using password: NO)