12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
ADADADADAD
mysql数据库 时间:2024-12-03 10:31:06
作者:文/会员上传
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
1. 停止mysql服务[root@db02data]#/etc/init.d/mysqldstopShuttingdownMySQL..SUCCESS!2. 使用--skip-grant-tables启动mysql,忽略授权登录验证[root@db02data]#mysqld_safe-
以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。
1. 停止mysql服务
[root@db02data]#/etc/init.d/mysqldstopShuttingdownMySQL..SUCCESS!
2. 使用--skip-grant-tables启动mysql,忽略授权登录验证
[root@db02data]#mysqld_safe--skip-grant-tables--user=mysql>/dev/null2>&1&[1]30246
3. 登录mysql,修root密码
[root@db02data]#mysqlmysql>UPDATEmysql.userSETpassword=PASSWORD("123")WHEREuser='root'andhost='localhost';QueryOK,0rowsaffected(0.00sec)Rowsmatched:1Changed:0Warnings:0mysql>flushprivileges;QueryOK,0rowsaffected(0.01sec)mysql>quitBye
4. 退出mysql,并且重新启动mysql
[root@db02data]#/etc/init.d/mysqldstopShuttingdownMySQL..SUCCESS![1]+Donemysqld_safe--skip-grant-tables--user=mysql>/dev/null2>&1[root@db02data]#/etc/init.d/mysqldstartStartingMySQL.SUCCESS!
11-20
11-19
11-20
11-20
11-20
11-19
11-20
11-20
11-19
11-20
11-19
11-19
11-19
11-19
11-19
11-19