我使用以下命令在终端上运行MySQL。然后我尝试执行use mysql;,但它没有正常运行,但显示了一条意外的消息,如下所示。ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'
你认为为什么会发生这种情况?
在检查用户数据时,我的MySQL版本是5.7.19我发现"root“没有密码,但我知道它有密码。但是这个命令起作用了
UPDATE mysql.user SET authentication_string = PASSWORD('this is my password xxxxxxx') WHEREis my password xx
我刚刚在Linux机器上安装了mySQL 5.1.55,看起来还不错。# /usr/local/mysql/bin/mysql_install_db160606 21:46:25 [Warning] 'You can start the MySQL daemon with:
cd /usr/local/mysql