我正在做一个项目,我一直在尝试使用MySQL而不是SQLite。因此,我下载了MySQL并尝试用mysql_secure_installation设置根密码,但是当我提交这两个密码时,会出现以下错误:
... Failed!user 'root'@'localhost' as the authentication method used doesn't store authentication data in the MySQL
我使用以下命令在终端上运行MySQL。然后我尝试执行use mysql;,但它没有正常运行,但显示了一条意外的消息,如下所示。ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'
你认为为什么会发生这种情况?