网站首页 > 资源文章 正文
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
参考链接:
https://www.cnblogs.com/xfanqiexinx/p/11552626.html
猜你喜欢
- 2024-12-16 允许root用户SSH登录(SHH远程登陆: Access Denied )
- 2024-12-16 nginx: [emerg] bind() to 0.0.0.0:6666 failed (13: Permission denied)
- 2024-12-16 发邮件的时候,是不是经常碰到550错误呢?
- 2024-12-16 git push 报错:remote: Permission to xxxx.git denied to XX
- 2024-12-16 robocopy的详细参数 robocopy 参数
- 2024-12-16 树莓派ssh出现Permission denied, please try again
- 2024-12-16 在SpringSecurity中实现RBAC的权限认证
- 2024-12-16 爱而不得的伤感文案/A sentimental copy of love denied
- 2024-12-16 有玩家修改本地配置文件,实现作弊功能,和平精英:最高封号十年
- 2024-12-16 edge浏览器兼容性问题,错误代码:STATUS_
你 发表评论:
欢迎- 最近发表
- 标签列表
-
- 电脑显示器花屏 (79)
- 403 forbidden (65)
- linux怎么查看系统版本 (54)
- 补码运算 (63)
- 缓存服务器 (61)
- 定时重启 (59)
- plsql developer (73)
- 对话框打开时命令无法执行 (61)
- excel数据透视表 (72)
- oracle认证 (56)
- 网页不能复制 (84)
- photoshop外挂滤镜 (58)
- 网页无法复制粘贴 (55)
- vmware workstation 7 1 3 (78)
- jdk 64位下载 (65)
- phpstudy 2013 (66)
- 卡通形象生成 (55)
- psd模板免费下载 (67)
- shift (58)
- localhost打不开 (58)
- 检测代理服务器设置 (55)
- frequency (66)
- indesign教程 (55)
- 运行命令大全 (61)
- ping exe (64)
本文暂时没有评论,来添加一个吧(●'◡'●)