解决xampp中的数据库不能使用的问题:host localhost is not allowed to connect to this MySQL server

进入C:\xampp\mysql\bin,打开my.ini文件,在标题为[mysqld]的标签下面加上skip-grant-tables 这句话,保存,重新运行数据库就可以了。

发布了26 篇原创文章 · 获赞 6 · 访问量 5100

猜你喜欢

转载自blog.csdn.net/Blablabla_/article/details/96993435