摘要:
默认配置文件路径/etc/mysql/my.cnf更改用户(root)密码#命令行方式mysqladmin -u USER -p password NEWPASSWORD#或者, 以root身份进入mysqlmysql -u root -p;use mysql;UPDATE user SET password=PASSWORD('NEWPASSWORD') WHERE user='root';FLUSH PRIVILEGES; # 刷新系统权限表创建用户 insert into mysql.user(Host,User,Password) values(&quo 阅读全文