Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What if installing the latest version of MySQL causes login phpMyAdmin to report an error?

2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to install the latest version of MySQL to log in to phpMyAdmin to report an error. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Installing the latest version of MySQL caused an error in login phpMyAdmin

Login with phpMyadmin after installing the latest version of mysql, encountered an error

The first kind of error report:

Mysqli::real_connect (): (HY000/2002): No such file or directory

Solution:

In the / libraries/config.default.php and / config.sample.inc.php files

$cfg ['Servers'] [$I] [' host'] = 'localhost'

Change to

$cfg ['Servers'] [$I] [' host'] = '127.0.0.1'

The second kind of error report:

Mysqli_real_connect (): The server requested authentication method unknown to the client [caching_sha2_password] mysqli_real_connect (): (HY000/2054): The server requested authentication method unknown to the client

Solution:

Terminal login mysql

Mysql-u root-p

Modify authorized user

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY' password'

Password is the mysql login password

About "install the latest version of MySQL caused login phpMyAdmin error how to do" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it out for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report