Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

johndoee's avatar

Access Denied lOCALHOST AFTER CHANGING password

How can I fix this access denied problem in xampp server. I change mysql password to 1234. after that cannot access,

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

MySQL said: Documentation

Cannot connect: invalid settings.
 mysqli::real_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: NO)
 phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.

how can I fix that issue

0 likes
1 reply
jlrdw's avatar

Did you set the password in phpMyAdmin config.

$cfg['Servers'][$i]['password'] = 'your_password';
1 like

Please or to participate in this conversation.