Mysql忘记密码解决方案
2017-10-11 18:29
190 查看
用命令跳过密码验证
mysqld -nt --skip-grant-tables
mysqld -nt --skip-grant-tables --user=root &(权限报错的话,用这个)
mysql -u root
update mysql.user set authentication_string=password('you password') where user='root' and Host ='localhost';
如果报以下错误,解决方法
[Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
(中文大意:强烈建议不要使用带有隐式默认值的TIMESTAMP。请使用explicit_defaults_for_timestamp选项)
官方网站相关说明:
As indicated by the warning, to turn off the nonstandard behaviors, enable the new
variable at server startup.
解决方案:
mysqld -nt --skip-grant-tables
mysqld -nt --skip-grant-tables --user=root &(权限报错的话,用这个)
mysql -u root
update mysql.user set authentication_string=password('you password') where user='root' and Host ='localhost';
如果报以下错误,解决方法
[Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
(中文大意:强烈建议不要使用带有隐式默认值的TIMESTAMP。请使用explicit_defaults_for_timestamp选项)
官方网站相关说明:
As indicated by the warning, to turn off the nonstandard behaviors, enable the new
explicit_defaults_for_timestampsystem
variable at server startup.
解决方案:
#开启查询缓存 explicit_defaults_for_timestamp=true
相关文章推荐
- mysql 忘记root密码解决方案
- MYSQL忘记密码的解决方案
- MYSQL忘记密码的解决方案
- Windows忘记mysql密码的解决方案
- Windows忘记mysql密码的解决方案
- XAMPP Mysql 忘记root密码解决方案
- windows系统下mysql忘记密码的解决方案
- Mysql忘记密码解决方案
- 【MySQL】Windows 8.1忘记MySQL5.7 root 密码解决方案
- mac上忘记mysql密码完美解决方案
- mysql 忘记密码解决方案
- MYSQL忘记密码的解决方案
- MYSQL忘记密码的解决方案
- mysql忘记root帐号和密码,修改root用户名和密码解决方案
- MySQL忘记密码恢复密码的解决方案
- 忘记MYSQL密码后解决方案
- 图文详解linux/windows mysql忘记root密码解决方案
- MAC上Mysql忘记Root密码或权限错误的快速解决方案
- MYSQL忘记密码的解决方案
- MYSQL忘记密码的解决方案