grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
flush privileges;
如果是mariadb
重启mysql
service mysql restart
service mariadb restart
service mysqld restart
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;
flush privileges;
如果是mariadb
重启mysql
service mysql restart
service mariadb restart
service mysqld restart