ERROR 1044 (42000): mysql问题解决
1.在linux上输入use mysql;报ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql' 时,
1.先打开配置文件。屏蔽权限
[mysqld]
skip-grant-tables

2.更新密码
update user set password=password('12345') where user='root';
3.然后在my.cnf或者my.ini中。去掉添加的
[mysqld]
skip-grant-tables
4.查看mysql的状态

删除空密码的账户

mysql一些其它命令
重启mysql
service mysql restart //ok
停止mysql
service mysql stop. //ok
屏蔽权限
mysqld_safe --skip-grant-table
查看mysql状态
service mysqlld status
相关推荐
-
PHP8种变量类型的详细讲解2025-02-22 00:32:24
-
php+apache 和 php+nginx的区别2025-02-22 00:21:27
-
PHP:与workerman结合实现定时任务2025-02-22 00:15:57
-
Nginx的Rewrite规则与实例2025-02-22 00:15:39
-
MySql中身份证字段的简单脱敏介绍2025-02-22 00:15:36