登录mysql时总是提示:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
后来进入用 /usr/local/mysql/bin/mysqld_safe --skip-grant-tables --user=root进入修改了密码,提示成功,但是还是进不了,提示一样的错误。
有一点很奇怪,我用--skip-grant-tables进去查看了一下用户列表是空的。
mysql> select user from mysql.user;
Empty set (0.00 sec)
怎么解决啊?
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
后来进入用 /usr/local/mysql/bin/mysqld_safe --skip-grant-tables --user=root进入修改了密码,提示成功,但是还是进不了,提示一样的错误。
有一点很奇怪,我用--skip-grant-tables进去查看了一下用户列表是空的。
mysql> select user from mysql.user;
Empty set (0.00 sec)
怎么解决啊?
解决方案 »
- win7下安装mysql数据库的路径选择
- C#操作mysql中临时表不自动删除
- Linux下mysqldump备份数据库出错
- 如何打包mysql数据库?
- 如何解决类似引用多个外键办法?--初学和高手都请进。。。。。。
- mysql 关于8位数的时间显示问题
- 请问,MYSQL中,如果做WHILE循环呢?~
- SQL 异常: Server configuration denies access to data source
- 大侠!帮我看看--急!
- 运行安装接口程序出现以下错误: You have an error in your SQL syntax; check the manual that corr
- 请教视图的写法
- 请教一下,这两条SQL语句执行效率哪个高点
/etc/init.d/mysql start –mysqld –skip-grant-tables
grant all on *.* to root@'localhost' identified by 'yourpassword';
grant all on *.* to root@'%' identified by 'yourpassword';
grant all on *.* to root@'localhost' identified by 'password';
grant all on *.* to root@'%' identified by 'password';