mysql修改用户密码和远程访问

./mysql -u root -e "update mysql.user set password=password ('CloudStor@123')where User='root';grant all privileges on *.* to 'root'@'%' identified by 'CloudStor@123' with grant option;flush privileges"

mysqld
  skip-grant-tables

猜你喜欢

转载自zyz611.iteye.com/blog/1350225