Não consigo acessar o XAMPP phpMyAdmin; diz: Erro O MySQL disse: Documentação não pode conectar: configurações inválidas

Mensagem de erro completa:

Error
MySQL said: Documentation
Cannot connect: invalid settings. 
Connection for controluser as defined in your configuration failed.
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.

Eu tenho usado um servidor de hospedagem até agora; isso pode ter atrapalhado minha conexão xampp. Meu arquivo "config.in.php" do phpMyAdmin está configurado da seguinte maneira:

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';

/* Bind to the localhost ipv4 address and tcp */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';

Eu sou capaz de executar os códigos php que criei usando o xampp em "localhost: 8080", mas não consigo acessar o mysql. Minha configuração de conexão com o banco de dados é a seguinte:

// Databse Connection Constants
define('DB_HOST','localhost');
define('DB_USER','root');
define('DB_PASS',','');
define('DB_NAME','gallery_db');

Alguém pode ajudar? Obrigado.

questionAnswers(2)

yourAnswerToTheQuestion