国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Plugin mysql_native_password reported: ‘‘mysql_native_password‘ is deprecated and will be removed i

這篇具有很好參考價值的文章主要介紹了Plugin mysql_native_password reported: ‘‘mysql_native_password‘ is deprecated and will be removed i。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

?Plugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'

Plugin mysql_native_password reported: ‘‘mysql_native_password‘ is deprecated and will be removed i,MYSQL主從,mysql,android,數(shù)據(jù)庫

?show variables like 'default_authentication%';

?Plugin mysql_native_password reported: ‘‘mysql_native_password‘ is deprecated and will be removed i,MYSQL主從,mysql,android,數(shù)據(jù)庫

?select host,user,plugin,authentication_string from mysql.user;

Plugin mysql_native_password reported: ‘‘mysql_native_password‘ is deprecated and will be removed i,MYSQL主從,mysql,android,數(shù)據(jù)庫

1.參考初步分析中的方案,將應(yīng)用的連接配置修改為正確的用戶信息;

2.可以在mysql數(shù)據(jù)庫中通過參數(shù)將該告警過濾,避免該告警信息輸入到錯誤日志文件。相關(guān)配置如下:

show variables like 'log_error_suppression_list';
set global log_error_suppression_list='MY-013360;
show variables like 'log_error_suppression_list';

注意,使用該方案也會導(dǎo)致某個存在且使用SHA256_PASSWORD認(rèn)證插件產(chǎn)生的告警??梢宰鳛榕R時方案;

3.修改mysql代碼,避免在使用不存在用戶登錄數(shù)據(jù)庫時,選擇 SHA256_PASSWORD認(rèn)證插件。目前針對該方案已提交Bug #109635。

或者

sha256_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead
?
mysql server errorlog忽然爆出大量的sha256_password' is deprecated and will be removed in a future release.錯誤,導(dǎo)致error不停寫入報錯信息
?
2021-07-11T13:17:25.067300Z 2385 [Warning] [MY-013360] [Server] Plugin sha256_password reported: ''sha256_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
........
...............
............................
2021-07-11T13:17:31.197610Z 2417 [Warning] [MY-013360] [Server] Plugin sha256_password reported: ''sha256_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead'
?
?
1.首先的排查思路是要查清楚什么原因?qū)е碌拇罅繄箦e,瘋狂的寫入日志,從報錯看有點像bug,但最后打消了這個念頭此版本是MySQL-8.0.25最新的GA,不應(yīng)該有這么低級的錯誤
?
然后梳理下面排查思路,從字面上看是sha256_password以后不被支持了,所以不斷的報錯,是什么原因出發(fā)這個報錯呢,很可能是老的程序客戶端使用的加密方式與MySQL 8.0.25的加密方式不兼容導(dǎo)致的
那么我們就從連接方向來排查,首先要找到哪些客戶端和程序連接到MySQL,導(dǎo)致的報錯
?
首先查詢本地下加密方式,所有用戶使用的都是caching_sha2_password,也是MySQL 8.0建議的加密方式
?
mysql> show variables like '%auth%';
+-------------------------------+-----------------------+
| Variable_name ? ? ? ? ? ? ? ? | Value ? ? ? ? ? ? ? ? |
+-------------------------------+-----------------------+
| default_authentication_plugin | caching_sha2_password |
+-------------------------------+-----------------------+
?
mysql> select user,host,plugin from mysql.user;
+------------------+--------------+-----------------------+
| user ? ? ? ? ? ? | host ? ? ? ? | plugin ? ? ? ? ? ? ? ?|
+------------------+--------------+-----------------------+
| repl ? ? ? ? ? ? | % ? ? ? ? ? ?| caching_sha2_password |
| root ? ? ? ? ? ? | 127.0.0.1 ? ?| caching_sha2_password |
| NC ? ? ? ? ? ? ? | 192.168.200.%| caching_sha2_password |
| mysql.infoschema | localhost ? ?| caching_sha2_password |
| mysql.session ? ?| localhost ? ?| caching_sha2_password |
| mysql.sys ? ? ? ?| localhost ? ?| caching_sha2_password |
| root ? ? ? ? ? ? | localhost ? ?| caching_sha2_password |
+------------------+--------------+-----------------------+
7 rows in set (0.00 sec)
2.可以從查詢connection_control_failed_login_attempts表來確定哪些客戶端在連接MySQL和連接報錯
mysql> select * from information_schema.connection_control_failed_login_attempts;
ERROR 1109 (42S02): Unknown table 'CONNECTION_CONTROL_FAILED_LOGIN_ATTEMPTS' in information_schema
?
默認(rèn)情況下connection_control_failed_login_attempts沒有被啟用,我們需要安裝connection_control.so插件來獲取查詢支持
?
mysql> INSTALL PLUGIN CONNECTION_CONTROL SONAME 'connection_control.so';
Query OK, 0 rows affected (0.00 sec)
?
?
mysql> INSTALL PLUGIN CONNECTION_CONTROL_FAILED_LOGIN_ATTEMPTS SONAME 'connection_control.so';
Query OK, 0 rows affected (0.00 sec)
安裝好后查看默認(rèn)配置
mysql> show variables like 'connection_control%';
+-------------------------------------------------+------------+
| Variable_name ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | Value ? ? ?|
+-------------------------------------------------+------------+
| connection_control_failed_connections_threshold | 3 ? ? ? ? ?|
| connection_control_max_connection_delay ? ? ? ? | 2147483647 |
| connection_control_min_connection_delay ? ? ? ? | 1000 ? ? ? |
+-------------------------------------------------+------------+
?
01.connection_control_failed_connections_threshold :連續(xù)失敗最大次數(shù)3次,0表示不開啟
02.connection_control_max_connection_delay :超過最大失敗次數(shù)之后阻塞登錄最大時間(毫秒)
03.connection_control_min_connection_delay :超過最大失敗次數(shù)之后阻塞登錄最小時間(毫秒)
?
?
3.通過查詢我們可以看到兩個網(wǎng)段的程序一個是mysqlrouter一個是nc的程序不斷嘗試連接MySQL,很可能是他們的連接加密方式問題導(dǎo)致的
?
mysql> ?select * from information_schema.connection_control_failed_login_attempts;
+-----------------------------------------------+-----------------+
| USERHOST ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| FAILED_ATTEMPTS |
+-----------------------------------------------+-----------------+
| 'mysql_router5_da1ufs1lvt0b'@'172.16.200.153' | ? ? ? ? ? ? ?22 |
| 'NCAPP'@'192.168.200.153' ? ? ? ? ? ? ? ? ? ? | ? ? ? ? ? ? 1154|
+-----------------------------------------------+-----------------+
2 rows in set (0.00 sec)
?
?
4.經(jīng)過排查和確認(rèn),NC程序的加密方式與MySQL 8.0.25 caching_sha2_password 不兼容導(dǎo)致的,可以通過使用 mysql_native_password 創(chuàng)建用戶嘗試避開不兼容的問題
?
?文章來源地址http://www.zghlxwxcb.cn/news/detail-731826.html

到了這里,關(guān)于Plugin mysql_native_password reported: ‘‘mysql_native_password‘ is deprecated and will be removed i的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • 遠(yuǎn)程連接MySQL錯誤“plugin caching_sha2_password could not be loaded”的解決辦法sql連接亂碼

    遠(yuǎn)程連接MySQL錯誤“plugin caching_sha2_password could not be loaded”的解決辦法sql連接亂碼

    今天在阿里云租了一個服務(wù)器,當(dāng)我用sqlyog遠(yuǎn)程連接mysql時,報了plugin caching_sha2_password could not be loaded錯,即無法加載插件緩存sha2密碼,但是我在cmd窗口就可以訪問,在網(wǎng)上找了很多解決方法都沒有解決,最后找到了原因。在MySQL 8.0中,caching_sha2_password是默認(rèn)的身份驗證插件

    2024年02月07日
    瀏覽(23)
  • Unity Native Plugin C#和C++互相調(diào)用

    Unity Native Plugin C#和C++互相調(diào)用

    官方鏈接 1.DLL的方式: C++代碼:編譯成DLL,導(dǎo)入Unity C#代碼: 2.還有一種是C++源碼作為插件,只支持il2cpp。 C++代碼:直接放到Unity的Assets目錄下 C#源文件:區(qū)別只在導(dǎo)入時不寫具體的文件名,寫:__Internal即可,因為用IL2CPP 后端的方式,會把C++源文件放到工程內(nèi)部一塊編譯。

    2024年02月12日
    瀏覽(16)
  • 2059-Authentication plugin‘caching_sha2_password‘cannot be loaded

    2059-Authentication plugin‘caching_sha2_password‘cannot be loaded

    2059-Authentication plugin’caching_sha2_password’cannot be loaded 由于目前已有的客戶端連接軟件還不支持Mysql8新增加的加密方式:caching_sha2_password 老的加密驗證方式:mysql_native_password 1、打開MySQL 8.0 Command Line Client,控制面板搜索即可搜到,打開即可 2、輸入密碼 3、輸入以下命令 其實

    2024年02月05日
    瀏覽(20)
  • java.sql.SQLException: Unable to load authentication plugin ‘caching_sha2_password‘解決

    java.sql.SQLException: Unable to load authentication plugin ‘caching_sha2_password‘解決

    最近遇到了?java.sql.SQLException: Unable to load authentication plugin \\\'caching_sha2_password\\\'.這個報錯。 主要原因8.x版本的驗證模塊和之前版本不同: 5.x版本是:default_authentication_plugin=mysql_native_password 8.x版本就是:default_authentication_plugin=caching_sha2_password ? 解決方案 ①更新mysql驅(qū)動的jar版本

    2024年01月21日
    瀏覽(21)
  • 輸入openstack命令或glance命令時返回Missing value auth-url required for auth plugin password

    輸入openstack命令或glance命令時返回Missing value auth-url required for auth plugin password

    輸入命令: 或者是: 返回錯誤提示: 我是使用的DevStack裝的openstack: 官網(wǎng)地址: 安裝完后 web面板可以正常使用 但是輸入命令返回以上錯誤 解決方法 這時我們需要設(shè)置暴露變量 首先連接數(shù)據(jù)庫查看keystone的認(rèn)證url tips:mysql密碼是你安裝openstack時的設(shè)置的統(tǒng)一密碼 也可以使

    2024年02月13日
    瀏覽(25)
  • jmeter 報此錯誤 \report‘ as folder is not empty

    jmeter 報此錯誤 \report‘ as folder is not empty

    jmeter 報此錯誤 report’ as folder is not empty 解決方案 出現(xiàn)此錯誤的原因試因為同一個界面出現(xiàn)同樣的文件,只要把文件刪除,重新執(zhí)行此命令即可。 刪除文件框住得report和result.jtl 即可 執(zhí)行成功

    2024年02月11日
    瀏覽(38)
  • docker login 明文密碼登錄提示W(wǎng)ARNING! Using --password via the CLI is insecure. Use --password-stdin.

    docker login 明文密碼登錄提示W(wǎng)ARNING! Using --password via the CLI is insecure. Use --password-stdin.

    官方參考文檔 要以非交互方式運行該命令,您可以設(shè)置 flag 以提供密碼通過。使用防止密碼最終出現(xiàn)在外殼的歷史記錄中, 或日志文件。 下面的示例從文件中讀取密碼,并使用以下命令將其傳遞給命令: 也可以以環(huán)境變量形式登錄,以下示例從變量讀取密碼,然后使用ST

    2024年02月11日
    瀏覽(86)
  • 處理 Code:516. Authentication failed: password is incorrect or there is no user with such name.

    處理 Code:516. Authentication failed: password is incorrect or there is no user with such name.

    ?在測試 ClickHouse 分布式表時,創(chuàng)建分布式表成功,但是查詢數(shù)據(jù)時報錯,如下: Received exception from server (version 22.2.2): Code: 516. DB::Exception: Received from 192.168.38.101:9000. DB::Exception: Received from 192.168.38.103:9000. DB::Exception: default: Authentication failed: pass word is incorrect or there is no user w

    2024年02月17日
    瀏覽(25)
  • kafka開kerberos認(rèn)證報錯the client is being asked for a password

    kafka開kerberos認(rèn)證報錯the client is being asked for a password

    @Kafka kerberos認(rèn)證錯誤記錄TOC kafka 開發(fā)調(diào)試,開 kerberos情況下遇到的錯誤。 Could not login: the client is being asked for a password, but the Kafka client code does not currently support obtaining a password from the user. not available to garner authentication information from the user Caused by: javax.security.auth.login.LoginExcepti

    2023年04月21日
    瀏覽(21)
  • Linux-系統(tǒng)中用戶不在sudoers文件中--is not in the sudoers file. This incident will be reported

    報錯提示:“is not in the sudoers file. This incident will be reported” 這里涉及到了系統(tǒng)中普通用戶提權(quán)的一個過程,有時候當(dāng)前用戶會利用 sudo su 命令來進行提權(quán),但是究竟有哪些用戶可以來進行提權(quán)呢?這里涉及到了一個 /etc/sudoers路徑下的 文件,這里面保存了一些用戶,這些用戶

    2024年02月16日
    瀏覽(45)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包