国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 開發(fā) > Linux Shell > 正文

linux下忘記mysql密碼的幾種找回方法(推薦)

2020-07-27 18:50:02
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

今天我們主要是講一下關(guān)于linux忘記mysql密碼處理方法,下面提供了5種linux忘記mysql密碼找回方法哦。

方法一(先進(jìn)入root權(quán)限):

# /etc/init.d/mysql stop# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &# mysql -u rootmysql> update user set password=password("newpassword") where user=‘root‘;mysql> flush privileges;mysql> quit# /etc/init.d/mysql restart# mysql -uroot -penter password: <輸入新設(shè)的密碼newpassword>mysql>

方法二:

直接使用/etc/mysql/debian.cnf文件中[client]節(jié)提供的用戶名和密碼:

# mysql -udebian-sys-maint -penter password: <輸入[client]節(jié)的密碼>mysql> update user set password=password("newpassword") where user=root;mysql> flush privileges;mysql> quit# mysql -uroot -penter password: <輸入新設(shè)的密碼newpassword>mysql>

方法三:

這種方法我沒(méi)有進(jìn)行過(guò)測(cè)試,因?yàn)槲业膔oot用戶默認(rèn)密碼已經(jīng)被我修改過(guò)了,那位有空測(cè)試一下,把結(jié)果告訴我,謝謝!!

# mysql -uroot -penter password: <輸入/etc/mysql/debian.cnf文件中[client]節(jié)提供的密碼>

方法四:

方法如下: 1, 關(guān)閉mysql服務(wù) /etc/init.d/mysqld stop 2,使用

主站蜘蛛池模板: 平山县| 浪卡子县| 永顺县| 库伦旗| 黎平县| 全州县| 德安县| 香格里拉县| 乌兰察布市| 顺平县| 奉贤区| 炎陵县| 广东省| 上蔡县| 武陟县| 连江县| 普兰店市| 孟村| 泌阳县| 曲沃县| 丽江市| 九江市| 周至县| 珲春市| 常宁市| 冷水江市| 宾阳县| 万宁市| 西畴县| 巩义市| 东平县| 黑水县| 广元市| 绵竹市| 读书| 成武县| 罗田县| 罗田县| 景德镇市| 旺苍县| 华安县|