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

<small id='cvtYR'></small><noframes id='cvtYR'>

  • <i id='cvtYR'><tr id='cvtYR'><dt id='cvtYR'><q id='cvtYR'><span id='cvtYR'><b id='cvtYR'><form id='cvtYR'><ins id='cvtYR'></ins><ul id='cvtYR'></ul><sub id='cvtYR'></sub></form><legend id='cvtYR'></legend><bdo id='cvtYR'><pre id='cvtYR'><center id='cvtYR'></center></pre></bdo></b><th id='cvtYR'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='cvtYR'><tfoot id='cvtYR'></tfoot><dl id='cvtYR'><fieldset id='cvtYR'></fieldset></dl></div>

    <legend id='cvtYR'><style id='cvtYR'><dir id='cvtYR'><q id='cvtYR'></q></dir></style></legend>
    <tfoot id='cvtYR'></tfoot>

      <bdo id='cvtYR'></bdo><ul id='cvtYR'></ul>

      1. PHP 5.4 PDO 無(wú)法使用舊的不安全身份驗(yàn)證連接到

        PHP 5.4 PDO could not connect to MySQL 4.1+ using the old insecure authentication(PHP 5.4 PDO 無(wú)法使用舊的不安全身份驗(yàn)證連接到 MySQL 4.1+)

            <bdo id='sdigS'></bdo><ul id='sdigS'></ul>

            1. <i id='sdigS'><tr id='sdigS'><dt id='sdigS'><q id='sdigS'><span id='sdigS'><b id='sdigS'><form id='sdigS'><ins id='sdigS'></ins><ul id='sdigS'></ul><sub id='sdigS'></sub></form><legend id='sdigS'></legend><bdo id='sdigS'><pre id='sdigS'><center id='sdigS'></center></pre></bdo></b><th id='sdigS'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='sdigS'><tfoot id='sdigS'></tfoot><dl id='sdigS'><fieldset id='sdigS'></fieldset></dl></div>

            2. <legend id='sdigS'><style id='sdigS'><dir id='sdigS'><q id='sdigS'></q></dir></style></legend>
            3. <tfoot id='sdigS'></tfoot>

                1. <small id='sdigS'></small><noframes id='sdigS'>

                    <tbody id='sdigS'></tbody>
                  本文介紹了PHP 5.4 PDO 無(wú)法使用舊的不安全身份驗(yàn)證連接到 MySQL 4.1+的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問題描述

                  我知道有很多類似的問題,事實(shí)上我已經(jīng)閱讀了所有 (9) 個(gè).

                  然而,它們都沒有解決我的問題.

                  我有一個(gè)共享主機(jī)包(最低限度).我的包中包含的是域名和托管 MySQL 服務(wù)器的單獨(dú) IP 地址.對(duì)于開發(fā),我將 http://localhost/ 與 PHP 5.4 的開發(fā)服務(wù)器一起使用,并且我正在使用我在托管包中獲得的 MySQL 服務(wù)器.

                  這個(gè)問題只出現(xiàn)在我的電腦上,因?yàn)槲乙呀?jīng)安裝了 PHP 5.4,但是我的 web 主機(jī)已經(jīng)安裝了 PHP 5.2.17 并且不會(huì)升級(jí).MySQL 服務(wù)器在 MySQL 5.1.50 上.

                  幸運(yùn)的是,phpMyAdmin 具有內(nèi)置的更改密碼"功能.

                  phpMyAdmin 中有兩個(gè)用于更改密碼的散列選項(xiàng):

                  • MySQL 4.1+
                  • 兼容 MySQL 4.0

                  我使用 MySQL 4.1+ 選項(xiàng)更改了密碼,并確認(rèn)更新成功.

                  <塊引用>

                  個(gè)人資料已更新.SET PASSWORD = PASSWORD('***')

                  但是,當(dāng)我執(zhí)行此查詢時(shí):

                  SELECT @@global.old_passwords, @@session.old_passwords, Length(PASSWORD('abc'));

                  它告訴我密碼長(zhǎng)度仍然是 16.輸出:

                  <塊引用>

                  1 1 16

                  所以問題仍然存在.

                  <塊引用>

                  無(wú)法連接到數(shù)據(jù)庫(kù).SQLSTATE[HY000] [2000] mysqlnd 無(wú)法使用舊的不安全身份驗(yàn)證連接到 MySQL 4.1+.請(qǐng)使用管理工具通過命令 SET PASSWORD = PASSWORD('your_existing_password') 重置您的密碼.這將在 mysql.user 中存儲(chǔ)一個(gè)新的、更安全的哈希值.如果在 PHP 5.2 或更早版本執(zhí)行的其他腳本中使用了此用戶,您可能需要從 my.cnf 文件中刪除舊密碼標(biāo)志

                  當(dāng)使用 phpMyAdmin 中的 DBO 用戶登錄時(shí),我也嘗試執(zhí)行這些查詢:

                  SET SESSION old_passwords=0;[phpMyAdmin 重新加載到主屏幕,但值仍然 = 1]設(shè)置全局 old_passwords = 0;#1227 - 訪問被拒絕;您需要此操作的 SUPER 權(quán)限同花順特權(quán);#1227 - 訪問被拒絕;您需要此操作的 RELOAD 權(quán)限

                  這與用于設(shè)置 DBO 用戶的網(wǎng)站主機(jī)菜單中所述的內(nèi)容相矛盾:

                  <塊引用>

                  數(shù)據(jù)庫(kù)所有者
                  創(chuàng)建新數(shù)據(jù)庫(kù)時(shí),需要指定一個(gè)Database Owner (DBO) User,該用戶具有
                  對(duì)數(shù)據(jù)庫(kù)的完全管理員訪問權(quán)限.

                  這是我必須與我的虛擬主機(jī)商解決的問題嗎?或者它可以由我的 DBO 用戶解決嗎?否則可以在PHP中繞過嗎?(因?yàn)樗m用于 PHP 5.2.17 但不適用于 PHP 5.4)

                  解決方案

                  SOLVED!

                  盡管 SET SESSION old_passwords=0; 在 phpMyAdmin 中不起作用.

                  我下載了 MySQL GUI 工具并使用了 MySQL 查詢?yōu)g覽器在非 DBO 用戶上執(zhí)行相同的命令:

                  SET SESSION old_passwords = 0;

                  SELECT @@global.old_passwords, @@session.old_passwords, Length(PASSWORD('abc'));

                  現(xiàn)在返回:

                  1 0 41

                  所以我只是更改了密碼:

                  SET PASSWORD = PASSWORD('my_old_password')

                  現(xiàn)在 PHP 5.4 PDO 連接到該用戶的數(shù)據(jù)庫(kù)!

                  I know there are a tonne of similar questions, in fact I've read all (9) of them.

                  However, none of them solve my problem.

                  I have a shared-hosting package (the minimum). What's included in my package is the domain name, and a separate IP address where the MySQL server is hosted. For development, I'm using http://localhost/ with PHP 5.4's development server, and I'm using the MySQL server I get in my hosting package.

                  The problem arises only on my PC, because I have installed PHP 5.4, but my web host has installed PHP 5.2.17 and won't upgrade. The MySQL server is on MySQL 5.1.50.

                  Luckily, phpMyAdmin has a built-in "Change Password" feature.

                  There are two hashing options in phpMyAdmin for changing a password:

                  • MySQL 4.1+
                  • MySQL 4.0 compatible

                  I changed the password with the MySQL 4.1+ option, and it confirmed the update was successful.

                  The profile has been updated. SET PASSWORD = PASSWORD( '***' )

                  However, when I perform this query:

                  SELECT @@global.old_passwords, @@session.old_passwords, Length(PASSWORD('abc'));
                  

                  It tells me the password length is still 16. Output:

                  1     1     16
                  

                  And so the problem persists.

                  Could not connect to database. SQLSTATE[HY000] [2000] mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD('your_existing_password'). This will store a new, and more secure, hash value in mysql.user. If this user is used in other scripts executed by PHP 5.2 or earlier you might need to remove the old-passwords flag from your my.cnf file

                  I've also tried to do these queries, when logged in with the DBO user in phpMyAdmin:

                  SET SESSION old_passwords=0; 
                  [phpMyAdmin reloads to the home screen, but the value remains = 1]
                  
                  SET GLOBAL old_passwords = 0;
                  #1227 - Access denied; you need the SUPER privilege for this operation
                  
                  FLUSH PRIVILEGES;
                  #1227 - Access denied; you need the RELOAD privilege for this operation
                  

                  This is contradictory to what is stated in the webhost's menu for setting the DBO user:

                  Database Owner
                  When you create a new database, you need to specify a Database Owner (DBO) User, which will have
                  full administrator access to the database.

                  Is this something I have to take up with my webhosts? Or can it be solved by my DBO user? Otherwise can this be bypassed in PHP? (since it works with PHP 5.2.17 but not PHP 5.4)

                  解決方案

                  SOLVED!

                  Although the SET SESSION old_passwords=0; wasn't working in phpMyAdmin.

                  I downloaded the MySQL GUI Tools and used the MySQL Query Browser to execute the same command on non-DBO user:

                  SET SESSION old_passwords = 0;

                  SELECT @@global.old_passwords, @@session.old_passwords, Length(PASSWORD('abc'));

                  now returned:

                  1      0      41
                  

                  So I simply changed the password:

                  SET PASSWORD = PASSWORD('my_old_password')

                  And now PHP 5.4 PDO connects to the database with that user!

                  這篇關(guān)于PHP 5.4 PDO 無(wú)法使用舊的不安全身份驗(yàn)證連接到 MySQL 4.1+的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  MySQLi prepared statement amp; foreach loop(MySQLi準(zhǔn)備好的語(yǔ)句amp;foreach 循環(huán))
                  Is mysqli_insert_id() gets record from whole server or from same user?(mysqli_insert_id() 是從整個(gè)服務(wù)器還是從同一用戶獲取記錄?)
                  PHP MySQLi doesn#39;t recognize login info(PHP MySQLi 無(wú)法識(shí)別登錄信息)
                  mysqli_select_db() expects exactly 2 parameters(mysqli_select_db() 需要 2 個(gè)參數(shù))
                  Php mysql pdo query: fill up variable with query result(Php mysql pdo 查詢:用查詢結(jié)果填充變量)
                  MySQLI 28000/1045 Access denied for user #39;root#39;@#39;localhost#39;(MySQLI 28000/1045 用戶“root@“l(fā)ocalhost的訪問被拒絕)
                    • <bdo id='PuZkT'></bdo><ul id='PuZkT'></ul>

                      • <i id='PuZkT'><tr id='PuZkT'><dt id='PuZkT'><q id='PuZkT'><span id='PuZkT'><b id='PuZkT'><form id='PuZkT'><ins id='PuZkT'></ins><ul id='PuZkT'></ul><sub id='PuZkT'></sub></form><legend id='PuZkT'></legend><bdo id='PuZkT'><pre id='PuZkT'><center id='PuZkT'></center></pre></bdo></b><th id='PuZkT'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='PuZkT'><tfoot id='PuZkT'></tfoot><dl id='PuZkT'><fieldset id='PuZkT'></fieldset></dl></div>

                          <tfoot id='PuZkT'></tfoot>

                            <small id='PuZkT'></small><noframes id='PuZkT'>

                            <legend id='PuZkT'><style id='PuZkT'><dir id='PuZkT'><q id='PuZkT'></q></dir></style></legend>
                              <tbody id='PuZkT'></tbody>

                            主站蜘蛛池模板: 欧美一级淫片免费视频黄 | 亚洲综合大片69999 | 久久国产精品色av免费观看 | 国产精品不卡视频 | 欧美国产精品一区二区三区 | 欧美成人一级视频 | 一区二区在线免费观看 | 亚洲精品在线免费观看视频 | 日韩三级一区 | 日韩一区二区三区在线 | 日本精品久久久久久久 | 日本精品一区二区三区视频 | 一区二区三区四区日韩 | 久久一级大片 | 亚洲视频欧美视频 | 日韩欧美在线不卡 | 午夜精品久久久久久 | 日韩国产精品一区二区三区 | 久久伊人影院 | 欧美激情综合网 | 91精产国品一二三区 | 亚洲精品成人 | 午夜婷婷激情 | 操亚洲 | 天堂久久久久久久 | 欧美aaaa视频 | 精品国产一区二区三区久久影院 | 日韩视频精品 | 玖玖国产精品视频 | 99精品电影| 91免费在线看 | 成人欧美一区二区三区1314 | 日日骚av| av电影一区 | 国产成人精品一区二区三区网站观看 | 黄色av免费网站 | www.色婷婷| 欧美精品区 | 国产一区二区精品在线 | 亚洲美女天堂网 | 久久91精品国产一区二区 |