即使从终端登录 PhpMyAdmin 时,我也收到以下错误消息:
mysqli_real_connect(): (HY000/1130): Host 'localhost' is not allowed to connect to this MariaDB server
此解决方案不起作用:
[mysql]
skip-grant-tables
我在 windows10 上使用 Xampp
最佳答案
如果您使用的是 xampp,那么只需添加
跳过授权表
在 C:\xampp71\mysql\bin\my.ini 文件中的 [mysqld] 以下和 port= 3306 以上。
注意:我在 php7.1 和 mariadb 10.3.16 中使用 xampp
关于php - 不允许主机 'localhost' 连接到此 MariaDB 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57127057/