在本地访问 Access denied for user ‘root‘@‘localhost‘ (using password: YES)
问题: 远程连接可以访问服务器的mysql 数据库,但是在服务器本地却不可以访问数据库。开启远程的方法update user set host='%' where user='root';flush privileges; 发现原因用远程连接上去后发现表中的root对应的host确实是%,而且还有一个127.0.0.1,那么不应该连接不上呀。 但是下面还有一个localhost是空白的,难道localhost和127.0.0.1不一样?百度搜索了一翻,还真不....
原创
2022-04-14 13:34:31 ·
585 阅读 ·
0 评论