mysql-root开启远程登录权限

服务器登录mysql执行以下:

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
FLUSH PRIVILEGES;

你可能感兴趣的:(数据库,mysql,数据库,linux,centos)