mysql 5.7.14+ 版本更改密码, 原来user表的password编程了authentication_string
2017-04-14 21:18
302 查看
1、首先停止正在运行的MySQL进程
Linux下,运行 killall -TERM MySQLdWindows下,如果写成服务的 可以运行:net stop MySQL,如未加载为服务,可直接在进程管理器中进行关闭。
2、以安全模式启动MySQL
Linux下,运行 /usr/local/mysql/bin/mysqld_safe --skip-grant-tables &Windows下,在命令行下运行 X:/MySQL/bin/mysqld-nt.exe --skip-grant-tables
3、完成以后就可以不用密码进入MySQL了
Linux下,运行 /usr/local/mysql/bin/mysql -u root -p 进入Windows下,运行 X:/MySQL/bin/mysql -u root -p 进入
4、更改MySQL数据库密码
>use mysql
>update user set authentication_string=password("new_pass") where user="root";
>flush privileges;
相关文章推荐
- Linux 下mysql 忘记root密码,修改密码怎么做?在mysql.user 中并没有password字段,但是有authentication_string
- mysql 5.7 版本,密码无法登陆,更改密码时出现ERROR 1054 (42S22): Unknown column 'password' in 'fie
- MySQL5.7密码list中password变了为authentication_string
- mysql 5.7 忘记密码,及修改密码问题,密码列不再是Password ,而是authentication_string
- MySQL 5.7版 解决密码登录失败Access denied for user 'root'@'localhost' (using password: NO)
- mysql 5.7 版本后数据没有字段 password 所以修改 root 密码 需要
- UsernamePasswordAuthenticationFilter是登陆用户密码验证过滤器,
- mysql修改密码后phpmyadmin 出现#1045 - Access denied for user 'root'@'localhost' (using password: NO)
- Mysql连接错误:Access denied for user 'root'@'localhost' (using password:YES)解决方案以及WINDOWS下修改Mysql密码
- mysql 更改user表修改密码
- xmapp中mysql密码修改问题 ERROR 1045 (28000): Access denied for user 'yangwan'@'localhost' (using password :
- MySQL5.7.13更改密码时出现ERROR 1054 (42S22): Unknown column 'password' in 'field list'
- mysql update完root用户密码后,再登陆报错”Access denied for user 'root'@'localhost' (using password: YES)“的解决方法
- Spring Security 入门(3-11)Spring Security 的登录密码验证过程 UsernamePasswordAuthenticationFilter
- 更改了一下用户名,plsql连接成功,但是同样的用户名密码,eclipse始终报错ORA-01017: invalid username/password; logon denied
- mySQL 5.7版 解决密码登录失败Access denied for user 'root'@'localhost' (using password: NO)
- MySQL主从复制与读写分离在windows系统下的实现(amoeba3.0+mysql5.1实现)因版本问题,本文在原来文章基础上有更改并且本人已经测试成功
- MySql错误1045 Access denied for user 'root'@'localhost' (using password:YES) windows下的解决方案(忘记密码)
- MySQL 5.5.8 – Problem while Creating new User (SQL Error (1364): Field ‘authentication_string’ doesn
- Mysql没有初始密码(ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO))