久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

無法將 root MySQL 密碼設(shè)置為 null

Can#39;t set root MySQL password to null(無法將 root MySQL 密碼設(shè)置為 null)
本文介紹了無法將 root MySQL 密碼設(shè)置為 null的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

限時送ChatGPT賬號..

安裝 mysql 時,我沒有在 root 密碼字段中輸入任何內(nèi)容,但是當(dāng)我運行 mysql -u root 時,我仍然收到 Access denied for user 'root'@'localhost'.

When installing mysql, I didn't put anything in the root password fields, but when I ran mysql -u root I still got Access denied for user 'root'@'localhost'.

我在沒有授權(quán)表的情況下以安全模式啟動 mysql,sudo mysql_safe --skip-grant-tables &,然后使用 mysql -u root 跳轉(zhuǎn),沒有一個問題.

I started mysql up in safe mode without the grant tables, sudo mysql_safe --skip-grant-tables &, then jumped in with mysql -u root without a problem.

然后我做了使用mysql;更新用戶集 authentication_string=null where user='root'; 和我得到:

Then I did use mysql; update user set authentication_string=null where user='root'; and I got:

Query OK, 0 rows affected (0.00 sec)
Rows matched: 1  Changed: 0  Warnings: 0

有人知道為什么密碼沒有更新嗎?

Anyone have any insight on why the password isn't updating?

推薦答案

我不得不將插件設(shè)置為mysql_native_password,所以密碼重置部分看起來像這樣:

I had to set the plugin to mysql_native_password, so the password reset part looks like this:

update user set authentication_string=password(''), plugin='mysql_native_password' where user='root'; FLUSH PRIVILEGES;

這篇關(guān)于無法將 root MySQL 密碼設(shè)置為 null的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

Typeorm Does not return all data(Typeorm 不返回所有數(shù)據(jù))
MySQL return extra records when using a long type number to filter varchar type(MySQL在使用長類型數(shù)字過濾varchar類型時返回額外記錄)
MySQL Error #1071 - Specified key was too long; max key length is 767 bytes(MySQL 錯誤 #1071 - 指定的鍵太長;最大密鑰長度為 767 字節(jié))
MySQL command-line table column width with utf8(MySQL命令行表列寬與utf8)
Python unicode encoding issue(Python unicode 編碼問題)
Create a MySQL stored function with a dynamic number of arguments(創(chuàng)建一個帶有動態(tài)參數(shù)數(shù)量的 MySQL 存儲函數(shù))
主站蜘蛛池模板: 夜夜艹天天干 | 欧美一区二区三区视频在线观看 | 国产成人在线视频免费观看 | 国内精品视频在线 | 精品国产欧美 | 久久国产精品色av免费观看 | xxxxx免费视频 | 911网站大全在线观看 | 中文字幕 亚洲一区 | 午夜精品久久久久久久99黑人 | 欧美一区二区三区国产 | 亚洲 欧美 日韩 在线 | 日日摸天天添天天添破 | 91视频麻豆 | 涩涩视频网站在线观看 | 久久久久久国产精品免费免费狐狸 | 国产三级在线观看播放 | 亚洲一区二区三区欧美 | 暖暖成人免费视频 | 久久99精品国产自在现线小黄鸭 | 视频在线观看亚洲 | 欧美日韩国产一区 | 91电影在线 | 久久亚洲视频 | wwwww在线观看 | 成年视频在线观看福利资源 | 午夜无码国产理论在线 | 精品久久久久一区二区国产 | 国内精品99 | 99久久精品国产一区二区三区 | 男女黄网站| 精品一区二区久久久久久久网站 | 一区二区三区中文字幕 | 激情五月综合网 | 欧美精品欧美精品系列 | 久久久久国产一区二区三区四区 | www久久 | 免费视频二区 | 激情五月综合网 | 精品国产精品一区二区夜夜嗨 | 一级a性色生活片久久毛片波多野 |