我是iOS的新手,并且一直在尝试在我的机器上配置mysql,我已经按照this安装了mysql,您可以在下面的图片中看到服务器在运行
现在,当我通过命令php artisan server
运行laravel项目时,它说
SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client
我已经在google上搜索了该问题,并且已经按照如下所示设置了my.cnf
[client]
port = 3306
socket = /tmp/mysql.sock
[mysqld]
port = 3306
socket = /tmp/mysql.sock
datadir = /usr/local/mysql-5.7.17-macos10.12-x86_64/data
tmpdir = /tmp
default_authentication_plugin= mysql_native_password
但没有任何进展,然后我尝试使用建议的here
命令更新用户ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password
BY 'password';
但它说
ERROR 1726 (HY000): Storage engine 'MyISAM' does not support system tables. [mysql.db]
现在,我已经分配了要用于我已经在运行的项目的数据库,并且有人说请勿更改系统表的引擎。here我不确定该怎么做接下来要做的就是在macOS上运行Laravel应用程序。
请提出建议,因为我已经尝试了足够的时间,并且花了将近2天的时间才在Mac上进行配置。
先谢谢了。 :)
注意:
Macos:mojave
编辑:
我也尝试使用MySql WorkBench中的Authentication Type: SHA256 Password
创建用户,但提示
Error creating account ahsan@localhost: Storage engine 'MyISAM' does not support system tables. [mysql.db]