Home > Database > Mysql Tutorial > phpmyadmin1045 error

phpmyadmin1045 error

angryTom
Release: 2019-10-18 12:39:03
Original
3193 people have browsed it

phpmyadmin1045 error

phpmyadmin1045 error

phpmyadmin is a database management tool, it is based on php, but our users can be managed through the web interface Mysql database. In this software, we encounter an error when logging in. The error code is #1045. Do you know why this error occurs? This is because our user has changed the root password. After the change, the default password for the file we configured becomes invalid, so an error message will pop up. There is a very simple way to solve this problem, and that is to use config.inc.php.

#1. As shown in the figure, the error message cannot be connected to the database, indicating that the account and password in the configuration file are wrong and need to be modified;

phpmyadmin1045 error

2. Open your installation directory and find the apps directory;

phpmyadmin1045 error3. Enter phpmyadmin In the root directory, find and open config.inc.php;

phpmyadmin1045 error

4. Find these two lines:

$cfg['Servers'][$i]['user'] = '你的数据库账号';
$cfg['Servers'][$i]['password'] = '你的数据库密码';
Copy after login

The database password is empty by default. I use root for both here and save;

phpmyadmin1045 error

5. Refresh the page and you can see phpmyadmin normally. Home page.

phpmyadmin1045 error

Recommended study: "mysql video tutorial"

The above is the detailed content of phpmyadmin1045 error. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template