权限设置:
chown mysql:mysql -R /var/lib/mysql
mysql -u root -p grant all privileges on *.* to root@'%' identified by 'Password01!' with grant option;
alter user 'root'@'%' identified by 'Password01!';
flush privileges;
权限设置:
chown mysql:mysql -R /var/lib/mysql
mysql -u root -p grant all privileges on *.* to root@'%' identified by 'Password01!' with grant option;
alter user 'root'@'%' identified by 'Password01!';
flush privileges;