当前位置:Gxlcms > 数据库问题 > 常见数据库优化方案(六)

常见数据库优化方案(六)

时间:2021-07-01 10:21:17 帮助过:3人阅读

skip-grant-tables:非常有用的mysql启动参数(不启动grant-tables授权表)  

 

 

skip-grant-tables:非常有用的mysql启动参数   介绍一个非常有用的mysql启动参数—— --skip-grant-tables。顾名思义,就是在启动
mysql时不启动grant-tables,授权表。有什么用呢?当然是忘记管理员密码后有用。    www.2cto.com   操作方法: 1、杀掉原来进行着的mysql: rcmysqld stop 或者: service mysqld stop 或者: kill -TERM mysqld   2、以命令行参数启动mysql: /usr/bin/mysqld_safe --skip-grant-tables &         3、修改管理员密码:  www.2cto.com   use mysql; update user set password=password(‘yournewpasswordhere‘) where user=‘root‘; flush privileges; exit;         4、杀死mysql,重启mysql.
转自 http://www.2cto.com/database/201302/188347.html

常见数据库优化方案(六)

标签:body   roo   target   pass   mil   方案   href   table   /usr   

人气教程排行