mysql報錯RuntimeError: cryptography is required for sha256_password or caching_sha2_p
報錯原因:mysql版本身份驗證出現問題引起的
官方解釋:https://dev.mysql.com/doc/refman/8.0/en/caching-sha2-pluggable-authentication.html
解決方法:
1.查詢你的mysql資料庫中user表plugin列的值,是否如下
如果跟圖中的值不同,請進行下面的操作
1). ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; #修改加密規則
2).ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; #更新一下使用者的密碼
3).FLUSH PRIVILEGES; #重新整理許可權
4).再重置下密碼:alter user 'root'@'localhost' identified by '123456';
2.重啟服務。
3.完成
ps:如果執行以上的操作bug並沒有解決,請再把default_authentication_plugin=mysql_native_password新增到配置中。
相關推薦
mysql報錯RuntimeError: cryptography is required for sha256_password or caching_sha2_p
報錯原因:mysql版本身份驗證出現問題引起的 官方解釋:https://dev.mysql.com/doc/refman/8.0/en/caching-sha2-pluggable-authentication.html 解決方法: 1.查詢你
mysql報錯Multi-statement transaction required more than 'max_binlog_cache_size' bytes of storage
.cn nbsp 導致 variable ria sed size log more mysql報錯Multi-statement transaction required more than ‘max_binlog_cache_size‘ bytes of storage
Navicat連線mysql報錯【1045 - Access denied for user 'root'@'localhost'(using password: YES)】
win10使用Navicat連線mysql8.0時,出現報錯【1045 - Access denied for user 'root'@'localhost'(using password: YES)】 或者,命令列連線mysql時,報錯【ERROR 1045 (28000): Access d
安裝MySQL報錯:The action ‘Install’ for product ‘MySQL Server 5.7.19’ failed.
今天安裝mysql服務時,出現了一個錯誤, The action ‘Install’ for product ‘MySQL Server 5.7.19’ failed. 如圖所示 嘗試著把檔案解除安裝,重新安裝是沒有用的,最後找到一個這樣的解決辦法: 32位的V
Spring-cloud-config-client更新報錯Full authentication is required to access this resource
{ "timestamp":1514441597157, "status":401, "error":"Unauthorized", "message":"Full
解決:MySQL 報錯:1045- Access denied for user 'root'@'localhost'(using password YES)
一、前言 今年瘋狂迷上了開源,只要看到好的開源專案,就會不顧一切一股腦扎進去研究,五一期間發現一個很好的關於眾籌的開源專案,但不巧,這個專案竟然是 PHP 寫的,沒學過 PHP,自然對這個開源專案毫無頭緒了,但我竟然為了這個專案,毅然決定入坑 PHP,
spring-boot-actuator報錯Full authentication is required to access this resource
By default all sensitive HTTP endpoints are secured such that only users that have an ACTUATOR role may access them. Security is enforced using the st
pip安裝mysql報錯 ld: library not found for -lssl
ld: library not found for -lssl clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command '/usr/bin/clang' failed w
hebiname報錯:id to load is required for loading
在使用hibernate時,有時會遇到這個異常:java.lang.IllegalArgumentException: id to load is required for loading,很多朋友應該都很困惑 1>在使用hibernate時,有時會遇到這個異常:java.lang.Ille
用SSH時出現報錯:id to load is required for loading
原因關於ssh中模型驅動我在用edit方法時沒有加上判斷條件頁面傳來的id是否為空值:如下面程式碼:public String edit(){ book = bookService.getBookById(id);return "success";}所以新增功能
解決mysql報錯:- Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.PROFILING.SEQ'
_for tran contains column schema mysql eat table express mysql執行報錯: - Expression #1 of ORDER BY clause is not in GROUP BY clause and cont
【MySQL報錯】ERROR 1558 (HY000): Column count of mysql.user is wrong. Expected 43, found 39.
found src 正常 err erro count blog 查找 版本 原文參考:http://wuzhuti.cn/2348.html 之前在centos6.4系統安裝的是自帶的mysql 5.1版本,後來升級到了5.6版本,執行以下命令報錯 在網上查找原因說說因
遠程登陸mysql報錯:ERROR 1130 (HY000): Host '10.0.0.8' is not allowed to connect to this MySQL server
image code 再次 light 解決辦法 allow this 解決 ror 問題原因:在數據庫遷移到mysql主機後遠程登陸mysql報錯: ERROR 1130 (HY000): Host ‘10.0.0.8‘ is not allowed to connec
連本地電腦裝的mysql報錯Access denied for user 'Root'@'localhost' (using password: YES)
不能 local 服務管理 let filter mysq his col run http://blog.csdn.net/iw1210/article/details/54646093 http://blog.csdn.net/qq_33251859/article
連接mysql報錯Access denied for user 'root'@'localhost' (using password: YES)解決辦法
免密碼登錄 denied cal then pass 問題 錯誤 命令 解決方法 1.打開MySQL目錄下的my.ini文件,在文件的最後添加一行“skip-grant-tables”(免密碼登錄),保存並關閉文件,重啟MySQL服務。 2.通過命令行進入M
mac安裝mysql報錯ERROR 1045 (28000): Access denied for.
mysql 參考 ble for mac安裝 回車 pri 輸入 命令 安裝完後,mysql -h localhost -u root -p 時候報錯,ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘
mysql報錯:java.sql.SQLException: Incorrect string value: ‘xE4xB8x80xE6xACxA1...‘ for column ‘excelName‘ at row 1
play order none png cor lin mysql報錯 mys splay 一、問題 用Eclipse做項目時候報錯 java.sql.SQLException: Incorrect string value: ‘\xE4\xB8\x80\xE6\
連線Mysql報錯lost connection to MySQL server at "waiting for initial communication packet
打開了3306埠,設定了user表host為'%',依然無法連線,telnet 3306埠不同,原因是配置檔案中設定了 bind-address: 127.0.0.1,(/etc/mysql/mysql.conf.d/sqld.cnf )把他註釋掉,埠能連上,但是又報下面的錯誤 lost conn
mysql 報錯Authentication method 'caching_sha2_password' is not supported
原文地址:https://blog.csdn.net/u011583336/article/details/80999043 之前工作中用的資料庫多是ms sqlserver,偶爾用到mysql都是運維配置好 ,今天心血來潮,在本地電腦安裝了一個mysql8.**的版本。建好表測試的時候發現報錯。c
Mysql報錯 message from server: "Host '61.148.245.96' is not allowed to connect to this MySQL server
原因是:遠端伺服器不允許你的java程式訪問它的資料庫。所以,我們要對遠端伺服器進行設定,使它允許你進行連線。 步驟:一、開啟mysql控制檯,輸入:use mysql; 二、輸入:show tables; 三、輸入:select host from