国产精品天干天干,亚洲毛片在线,日韩gay小鲜肉啪啪18禁,女同Gay自慰喷水

歡迎光臨散文網 會員登陸 & 注冊

解決yum方式安裝的MySQL 5.7 root用戶密碼丟失問題

2021-11-02 11:30 作者:Vecloud_  | 我要投稿


1、沒有輸入或輸入錯誤的root用戶密碼,無法進入數據庫:?
# mysql -uroot -p?
(1)沒有輸入root用戶密碼,直接回車:?

(2)輸入錯誤的root用戶密碼:?

2、強制結束MySQL進程:?
# yum -y install psmisc?
# killall mysqld?
# pkill mysqld?
# ps -ef | grep mysql?
# ss -tunlp | grep 3306?
3、使用mysqld命令,增加--skip-grant-tables參數,跳過權限表,啟動數據庫:?
# mysqld --defaults-file=/etc/my.cnf --user=mysql --skip-grant-tables &?
# ps -ef | grep mysql?
# ss -tunlp | grep 3306?
4、使用mysql命令直接進入數據庫,為root用戶設置新的密碼并刷新權限:?
# mysql?
mysql> use mysql;?
mysql> update user set authentication_string=password('root@1234') where user='root';?
mysql> flush privileges;?

5、重啟數據庫:?
# killall mysqld?
# pkill mysqld?
# ps -ef | grep mysql?
# ss -tunlp | grep 3306?
# systemctl start mysqld?
6、輸入root用戶新設置的密碼root@1234,進入數據庫:?
# mysql -uroot -p

了解更多網絡知識關注:http://www.vecloud.com/

解決yum方式安裝的MySQL 5.7 root用戶密碼丟失問題的評論 (共 條)

分享到微博請遵守國家法律
沁水县| 临泽县| 奉新县| 牡丹江市| 台湾省| 勃利县| 罗平县| 闽侯县| 苍溪县| 弥渡县| 基隆市| 射阳县| 濉溪县| 武平县| 建德市| 遂川县| 闽侯县| 洛阳市| 乐陵市| 云霄县| 泰兴市| 甘德县| 临洮县| 麟游县| 勐海县| 江陵县| 赣榆县| 满城县| 迁安市| 喀什市| 隆昌县| 东源县| 诏安县| 临汾市| 文山县| 三门峡市| 舒兰市| 于田县| 柳州市| 汪清县| 察雅县|