欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

Mysql密碼重置方法介紹

本文主要給大家介紹MySQL密碼重置方法,文章內(nèi)容都是筆者用心摘選和編輯的,具有一定的針對(duì)性,對(duì)大家的參考意義還是比較大的,下面跟筆者一起了解下Mysql密碼重置方法吧。 

10年積累的成都網(wǎng)站設(shè)計(jì)、網(wǎng)站制作經(jīng)驗(yàn),可以快速應(yīng)對(duì)客戶對(duì)網(wǎng)站的新想法和需求。提供各種問題對(duì)應(yīng)的解決方案。讓選擇我們的客戶得到更好、更有力的網(wǎng)絡(luò)服務(wù)。我雖然不認(rèn)識(shí)你,你也不認(rèn)識(shí)我。但先制作網(wǎng)站后付款的網(wǎng)站建設(shè)流程,更有察哈爾右翼后免費(fèi)網(wǎng)站建設(shè)讓你可以放心的選擇與我們合作。

  • Step # 1: Stop the MySQL server process.
  • Step # 2: Start the MySQL (mysqld) server/daemon process with the –skip-grant-tables option so that it will not prompt for password.
  • Step # 3: Connect to mysql server as the root user.
  • Step # 4: Setup new mysql root account password i.e. reset mysql password.
  • Step # 5: Exit and restart the MySQL server.

ok,五步,開始!

Step # 1 : 停止sql服務(wù)

/etc/init.d/mysql stop

輸出 Stopping MySQL database server: mysqld.

Step # 2: 啟動(dòng)mysql服務(wù)鏡像

mysqld_safe --skip-grant-tables &

輸出
Starting mysqld daemon with databases from /var/lib/mysql
mysqld_safe

Step # 3: 以mysql服務(wù)的方式去鏈接數(shù)據(jù)庫

mysql -u root

輸出顯示
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.1.15-Debian_1-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>

Step # 4: 為root用戶設(shè)置新的密碼

mysql> use mysql;
mysql> update user set password=PASSWORD("你的密碼") where User='root';
mysql> flush privileges;
mysql> quit

Step # 5: 啟動(dòng)mysql服務(wù)

/etc/init.d/mysql stop

Stopping MySQL database server: mysqld
STOPPING server from pid file /var/run/mysqld/mysqld.pid
mysqld_safe[6186]: ended
[1]+  Done                    mysqld_safe --skip-grant-tables</pre>

Step # 6: 驗(yàn)證

 /etc/init.d/mysql start
 mysql -u root -p

輸入這條命令按enter鍵后再輸入密碼,就能進(jìn)去數(shù)據(jù)庫啦!

reference:
https://www.cyberciti.biz/tips/recover-mysql-root-password.html

看完以上關(guān)于Mysql密碼重置方法,很多讀者朋友肯定多少有一定的了解,如需獲取更多的行業(yè)知識(shí)信息 ,可以持續(xù)關(guān)注我們的行業(yè)資訊欄目的。

網(wǎng)站欄目:Mysql密碼重置方法介紹
文章分享:http://chinadenli.net/article38/jhhppp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站內(nèi)鏈小程序開發(fā)、App開發(fā)、網(wǎng)站設(shè)計(jì)公司建站公司

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

外貿(mào)網(wǎng)站制作