-1

I installed XAMPP server and it run correctly, but when I went to connect to phpMyAdmin by remote access I have this problem:

enter image description here

My configuration of config.inc.php is:

$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'my ip address';
$cfg['Servers'][$i]['port'] = '3306';

$cfg['Servers'][$i]['connect_type'] = 'tcp';
/*$cfg['Servers'][$i]['compress'] = false; */
$cfg['Servers'][$i]['AllowNoPassword'] = true;

Even when I configure a password and I enter by it I have the same problem.

Praveen Kumar Purushothaman
  • 160,666
  • 24
  • 190
  • 242
aze
  • 29
  • 2

2 Answers2

1

In MySQL allow access from your host to root user:

GRANT ALL PRIVILEGES ON *.* TO 'root'@'<your IP or %>' IDENTIFIED BY '<password>';

<your IP or %> = Is either your IP or "%" symbol to allow access from all the hosts.

<password> = your root password

user4035
  • 21,015
  • 10
  • 54
  • 86
-1

Change:

$cfg['Servers'][$i]['AllowNoPassword'] = true;

to

$cfg['Servers'][$i]['AllowNoPassword'] = FALSE;
Webeng
  • 6,796
  • 4
  • 27
  • 55