解决连接数据库时is not allowed to connect to this MySql/mariadb server 的错误
出现这个问题是数据库拒绝远程连接导致的。
进入 mysql 数据库中
mysql -u root -p
grant all privileges on *.* to 'root'@'%' with grant option;
flush privileges;
OK!!!
出现这个问题是数据库拒绝远程连接导致的。
进入 mysql 数据库中
mysql -u root -p
grant all privileges on *.* to 'root'@'%' with grant option;
flush privileges;
OK!!!