1.首先,我进入了 mysqld_safe --skip-grant-tables &
2.然后通过 mysql 进入数据库
3.输入以下语句:
UPDATE mysql.user
SET authentication_string=password('1234')
WHERE Host='localhost' AND User='root';
然后就报这个错。。。。
1.首先,我进入了 mysqld_safe --skip-grant-tables &
2.然后通过 mysql 进入数据库
3.输入以下语句:
UPDATE mysql.user
SET authentication_string=password('1234')
WHERE Host='localhost' AND User='root';
然后就报这个错。。。。