标签:建议 mysq pre -- 方法 用户 logs soc use
mysqladmin -uroot password "new123";
1)mysqladmin -uroot -poldboy123 password "new123"; 2)mysql>update mysql.user set password=password("oldboy123") where user=‘root‘ and host=‘localhost‘; mysql>flush privileges; 3)mysql> set password=password("123");
1)首先关闭mysql 2) 跳过验证启动 mysqld_safe --skip-grant-tables & 3)使用修改mysql密码的方式进行修改建议(第二种方法) 4)重新启动mysql
mysql> grant all privileges on *.* to ‘system‘@‘localhost‘ identified by ‘oldboy123‘ with grant option; mysql> flush privileges;
mysqladmin -uroot -poldboy123 password "new123" -S /data/3306/mysql.sock
mysqld_safe --defaults-file=/data/3306/my.cnf --skip-grant-tables &
标签:建议 mysq pre -- 方法 用户 logs soc use
原文地址:http://www.cnblogs.com/xuezhigu/p/6679317.html