message from server: "Host 'DESKTOP-U79FCE6' is not allowed to connect to this MySQL server"

连完公司的数据库,想偷懒直接改成自己本机网关后的一位,

报这个错误是因为我连接数据库用的是自己本机的ip 192.168.xx.xx,

打开mysql控制台发现 没有这个用户

所以改成 127.0.0.1 或者localhost就好了

猜你喜欢

转载自blog.csdn.net/hqbootstrap1/article/details/82987684