- 论坛徽章:
- 14
|
回复 6# RogerZhuo
[root@www ~]# /etc/init.d/mysqld stop
Stopping MySQL: [ OK ]
[root@www ~]# mysqld_safe --skip-grant-tables &
[1] 3403
[root@www ~]# Starting mysqld daemon with databases from /var/lib/mysql
[root@www ~]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.0.95 Source distribution
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> INSERT INTO mysql.USER(HOST,USER,PASSWORD,select_priv,Super_priv,Grant_priv,Create_user_priv) VALUES ('localhost','zhuo',PASSWORD('123'),'Y','Y','Y','Y');
ERROR 1146 (42S02): Table 'mysql.USER' doesn't exist
mysql>
按照你的提示,先stop,然后mysqld_safe --skip-grant-tables &
然后执行
出现这个,mysql.USER 不存在 |
|