简体   繁体   中英

PHP/MYSQL changing username and password

I have a problem with my appserv. I am trying to log in to create an SQL database with username and password, however it does not work.

This is the config.inc.php excerpt:

$cfg['Servers'][$i]['auth_type']     = 'http';   
$cfg['Servers'][$i]['user']          = 'albert';      
$cfg['Servers'][$i]['password']      = '1234';      

Note that I have changed my localhost to 127.0.0.1 even with 127.0.0.1/phpmyadmin is not working too.

$cfg['Servers'][$i]['host']          = '127.0.0.1'; 

This is the error I am getting:

#1045 - Access denied for user 'albert'@'localhost' (using password: YES)

Any suggestions?

That is the MySQL error message for failed authentication. Either your username or password is incorrect. If you have cpanel or some kind of management tool, make sure you have the correct username and password.

As per mentioned Server login credentials is wrong thats why Display Access denied for user.

Thanks, JAY

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM