解决Accessdeniedforuser''@'
程序员文章站
2024-04-04 17:55:11
...
在修改mysql的root用户密码后,再登陆,提示如标题的错误,找了一番答案之后,终于解决,步骤如下: 1.停掉mysql: service mysqld stop 2.使用不验证的状态登陆mysql: mysqld_safe --skip-grant-tables //后台运行 启动mysql: service mysqld start 3.进入my
在修改mysql的root用户密码后,再登陆,提示如标题的错误,找了一番答案之后,终于解决,步骤如下:
1.停掉mysql: service mysqld stop
2.使用不验证的状态登陆mysql:
mysqld_safe --skip-grant-tables & //后台运行
启动mysql: service mysqld start
3.进入mysql: mysql -u root
4.use mysql;
5.delete from user where user=''; 删除空用户
6.flush previlige; 刷新权限
7.service mysqld restart
8.问题解决
上一篇: ThinkPHP表单自动提交验证实例教程_php实例
下一篇: PHP传参之传值与传址的区别_PHP
推荐阅读
-
解决Accessdeniedforuser''@'
-
ERROR 1045 (28000): Access denied for user 'ODBC&
-
mysql启动报错 unknown variable 'default-characte_MySQL
-
[转载]解决mysql“Access denied for user 'root_MySQL
-
[转载]解决mysql“Access denied for user 'root_MySQL
-
Thetransactionlogfordatabase'NJ_Address&
-
Incorrectsyntaxnear's'
-
mysql ERROR 2002 (HY000): Can't connect to local_MySQL
-
解决:java.sql.SQLException: Access denied for user '&a
-
IT忍者神龟之mysql远程连接:ERROR1130(HY000):Host'*.*