Linux 下mysql 忘记root密码,修改密码怎么做?在mysql.user 中并没有password字段,但是有authentication_string
2016-01-21 14:44
666 查看
第一步: vi /etc/my.cnf 在[mysqld] 下 增加 --skip-grant-tables
第二步: service mysql restart
第三步: shell>mysql 进入 控制台
4: use mysql
5: update user set authentication_string = password("123456") where user='root';
第二步: service mysql restart
第三步: shell>mysql 进入 控制台
4: use mysql
5: update user set authentication_string = password("123456") where user='root';
相关文章推荐
- linux命令执行返回值(附错误对照表)
- [原创]Centos7 内部常用软件升级计划
- Linux学习之CentOS(十三)--CentOS6.4下Mysql数据库的安装与配置
- 如何看linux是32位还是64位
- centos 下编译 gcc
- linux vi 命令
- Linux下,命令 wget 的使用
- Centos 6.5 优化 一些基础优化和安全设置
- Cacti监控Linux主机 脚本
- CentOS6.6 彻底删除默认mysql5.1
- Centos6.6系统的安装
- Linux 双物理网卡绑定成一个虚拟网卡
- linux 获取帮助文档
- CentOS7配置Yum报404错误
- Linux目录结构
- Linux 使用wget 命令下载JDK的方法
- linux整理笔记:root用户上传的文件,其他用户无法覆盖和删除
- linux命令: mount
- Windows/Linux下引用jar包,并用javac/java编译运行
- Linux内核的进程、线程问题