最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

ForgetMySQLPassword_MySQL

来源:动视网 责编:小采 时间:2020-11-09 18:33:30
文档

ForgetMySQLPassword_MySQL

ForgetMySQLPassword_MySQL:bitsCN.com 0. EnvironmentUbuntu 12.04 x64 serverMySQL 5.5.291. Steps1.1 Modify your MySQL's my.cnf file, and add a line in [mysqld] session:skip-grant-tables1.2 Restart MySQL1.3 Log in MySQL without password$ bin/mysql -u root -ppress e
推荐度:
导读ForgetMySQLPassword_MySQL:bitsCN.com 0. EnvironmentUbuntu 12.04 x64 serverMySQL 5.5.291. Steps1.1 Modify your MySQL's my.cnf file, and add a line in [mysqld] session:skip-grant-tables1.2 Restart MySQL1.3 Log in MySQL without password$ bin/mysql -u root -ppress e


bitsCN.com

0. Environment

Ubuntu 12.04 x64 server

MySQL 5.5.29

1. Steps

1.1 Modify your MySQL's "my.cnf" file, and add a line in "[mysqld]" session:
skip-grant-tables

1.2 Restart MySQL

1.3 Log in MySQL without password
$ bin/mysql -u root -p
press enter when the command shows "Enter password:"

1.4 Select database
mysql> use mysql;

1.5 Updata password
mysql> update user set password = password('mypass') where user = 'root';

1.6 Refresh tables related with system permissionmysql> flush privileges;

1.7 Modify your MySQL's "my.cnf" file to original version, delete the following line in "[mysqld]" session:skip-grant-tables

1.8 Restart MySQL

2. References

http://www.cnblogs.com/allenblogs/archive/2010/08/12/1798247.html

(This article is from http://www.cnblogs.com/chenyineng/archive/2013/04/30/3051959.html, and belongs to http://chenyineng.cnblogs.com and http://www.chenyineng.info)

bitsCN.com

文档

ForgetMySQLPassword_MySQL

ForgetMySQLPassword_MySQL:bitsCN.com 0. EnvironmentUbuntu 12.04 x64 serverMySQL 5.5.291. Steps1.1 Modify your MySQL's my.cnf file, and add a line in [mysqld] session:skip-grant-tables1.2 Restart MySQL1.3 Log in MySQL without password$ bin/mysql -u root -ppress e
推荐度:
标签: password mysql pas
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top