今天在使用navicat 绑定自己本地使用docker搭建的宝塔的数据库时出现错误:1130 - Host ‘_gateway’ is not allowed to connect to this MySQL server 解决:使用 xxx:登录用户名 xxxx:登录密码 ps:%可以替换成特定的ip地址 GRANT ALL PRIVILEGES ON *.* TO 'xxx'@'%' IDENTIFIED BY 'xxxx' WITH GRANT OPTION;