问题1:not allowed to connect to this MySQL server
修改mysql数据库中的user表数据,找到你想修改的用户,修改host字段(默认localhost)为“*”
然后运行
flush privileges;
问题2:Access denied for user 'thinkerdns'@'%' to database 'thinkerdns'
命令行输入:
grant all privileges on thinkerdns.* to 'thinkerdns'@'%' identified by '密码' with grant option;
然后运行
flush privileges;
查看下权限