mysqli_real_connect():(HY000/2002):

Asked

Viewed 5,130 times

-1

Erro

I have a problem accessing my phpMyAdmin. I started using Wampserver to program in PHP. I don’t know if I should make some initial configuration, but the way I tried to log in was without filling in User and Password, or just putting root in User and Password blank, but this error always appears. I have already checked config.inc.php within C: Wampserver apps phpmyadmin4.8.5 and this appears:

$cfg['Servers'][$i]['user'] = '';
$cfg['Servers'][$i]['password'] = '';
  • solve my problem by going to mysql installer by going to this option and adding a password pro phpmyadmin Root

1 answer

1

Your door is locked or not with the default. Do the following:

  1. Check that Mysql is running.
  2. Check mysql port is default 3306 The 1 and 2 you can check by clicking on the Wampserver icon next to the Windows clock

WampServer

  1. Check the firewall lock. Deactivate temporarily to test the firewall(s) you are using including Windows.

  2. Change the port in phpmyadmin’s config.inc.php if the mysql port is not default to 3306. Just open the file with a simple text editor, Notepad, Notepad++, vscode, and change the port by the port used by mysql. Link documentation, port change

Browser other questions tagged

You are not signed in. Login or sign up in order to post.