2
+2 正确重置MySQL密码
谁都不想弄丢家门钥匙,但不管多么小心,时间长了,这样的事情总会发生几次。MySQL密码也是一样,把它写在文档上不太安全,记在脑子里又难免会忘记。
如果你忘记了MySQL密码,如何重置它呢?
下面是错误答案:
首先停止MySQL服务,然后使用skip-grant-tables参数启动它:
shell> /etc/init.d/mysql stop
shell> mysqld_safe --skip-grant-tables &
此时无需授权就可以进
查看全文: http://www.udpwork.com/item/5255.html
如果你忘记了MySQL密码,如何重置它呢?
下面是错误答案:
首先停止MySQL服务,然后使用skip-grant-tables参数启动它:
shell> /etc/init.d/mysql stop
shell> mysqld_safe --skip-grant-tables &
此时无需授权就可以进
查看全文: http://www.udpwork.com/item/5255.html