1. <tfoot id='vqNjM'></tfoot>

      1. <legend id='vqNjM'><style id='vqNjM'><dir id='vqNjM'><q id='vqNjM'></q></dir></style></legend>

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

      2. <i id='vqNjM'><tr id='vqNjM'><dt id='vqNjM'><q id='vqNjM'><span id='vqNjM'><b id='vqNjM'><form id='vqNjM'><ins id='vqNjM'></ins><ul id='vqNjM'></ul><sub id='vqNjM'></sub></form><legend id='vqNjM'></legend><bdo id='vqNjM'><pre id='vqNjM'><center id='vqNjM'></center></pre></bdo></b><th id='vqNjM'></th></span></q></dt></tr></i><div id='vqNjM'><tfoot id='vqNjM'></tfoot><dl id='vqNjM'><fieldset id='vqNjM'></fieldset></dl></div>
          <bdo id='vqNjM'></bdo><ul id='vqNjM'></ul>

        phpMyAdmin 错误: mysqli_real_connect(): (HY000/1045): 用户

        时间:2023-07-31

          <i id='JmMn9'><tr id='JmMn9'><dt id='JmMn9'><q id='JmMn9'><span id='JmMn9'><b id='JmMn9'><form id='JmMn9'><ins id='JmMn9'></ins><ul id='JmMn9'></ul><sub id='JmMn9'></sub></form><legend id='JmMn9'></legend><bdo id='JmMn9'><pre id='JmMn9'><center id='JmMn9'></center></pre></bdo></b><th id='JmMn9'></th></span></q></dt></tr></i><div id='JmMn9'><tfoot id='JmMn9'></tfoot><dl id='JmMn9'><fieldset id='JmMn9'></fieldset></dl></div>
            <legend id='JmMn9'><style id='JmMn9'><dir id='JmMn9'><q id='JmMn9'></q></dir></style></legend>

              <tfoot id='JmMn9'></tfoot>

                <tbody id='JmMn9'></tbody>
              • <small id='JmMn9'></small><noframes id='JmMn9'>

                • <bdo id='JmMn9'></bdo><ul id='JmMn9'></ul>

                  本文介绍了phpMyAdmin 错误: mysqli_real_connect(): (HY000/1045): 用户 'pma'@'localhost' 访问被拒绝(使用密码:NO)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我通过 XAMPP 连接 mysql 时不断收到以下错误,但我不知道该怎么办:

                  I keep getting the following errors with mysql connection through XAMPP and I don't know what to do:

                  这是config.inc.php中的代码

                  That's the code in the config.inc.php

                  <?php
                  /*
                   * This is needed for cookie based authentication to encrypt password in
                   * cookie
                   */
                  $cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE 
                  SECURE COOKIE AUTH! */
                  
                  /*
                   * Servers configuration
                   */
                  $i = 0;
                  
                  /*
                  * First server
                  */
                  $i++;
                  
                  /* Authentication type and info */
                  $cfg['Servers'][$i]['auth_type'] = 'config';
                  $cfg['Servers'][$i]['user'] = 'root';
                  $cfg['Servers'][$i]['password'] = '';
                  $cfg['Servers'][$i]['extension'] = 'mysqli';
                  $cfg['Servers'][$i]['AllowNoPassword'] = true;
                  $cfg['Lang'] = '';
                  
                  /* Bind to the localhost ipv4 address and tcp */
                  $cfg['Servers'][$i]['host'] = '127.0.0.1';
                  $cfg['Servers'][$i]['connect_type'] = 'tcp';
                  
                  /* User for advanced features */
                  $cfg['Servers'][$i]['controluser'] = 'pma';
                  $cfg['Servers'][$i]['controlpass'] = '';
                  
                  /* Advanced phpMyAdmin features */
                  $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
                  $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
                  $cfg['Servers'][$i]['relation'] = 'pma__relation';
                  $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
                  $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
                  $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
                  $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
                  $cfg['Servers'][$i]['history'] = 'pma__history';
                  $cfg['Servers'][$i]['designer_coords'] = 'pma__designer_coords';
                  $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
                  $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
                  $cfg['Servers'][$i]['recent'] = 'pma__recent';
                  $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
                  $cfg['Servers'][$i]['users'] = 'pma__users';
                  $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
                  $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
                  $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
                  $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
                  $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
                  $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
                  $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
                  
                  /*
                   * End of servers configuration
                   */
                  
                  ?>
                  

                  我已经两次从命令行从 MySql 重置密码,并将更改添加到上面的代码和 php.ini 文件中,但每次都会返回错误.有什么帮助吗?

                  I've already reset the password from MySql from the command line two times and added the changes to this code above and to the php.ini file, but at each time it goes back to the error. Any help?

                  推荐答案

                  你需要在mysql中创建用户pma"或更改这一行(mysql的用户和密码):

                  yo need create the user "pma" in mysql or change this lines(user and password for mysql):

                  /* User for advanced features */
                  $cfg['Servers'][$i]['controluser'] = 'pma'; 
                  $cfg['Servers'][$i]['controlpass'] = '';
                  

                  Linux:/etc/phpmyadmin/config.inc.php

                  这篇关于phpMyAdmin 错误: mysqli_real_connect(): (HY000/1045): 用户 'pma'@'localhost' 访问被拒绝(使用密码:NO)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:mysqli_real_connect(): (HY000/2002): 没有那个文件或目录 下一篇:PHP 5.3.1 传递引用问题

                  相关文章

                  最新文章

                  <legend id='mSvux'><style id='mSvux'><dir id='mSvux'><q id='mSvux'></q></dir></style></legend>

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

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

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