mysqli_connect(): (HY000/1045): Access denied for user ''@'localhost' (using password: NO)
i'm getting this error above on localhost, my connection config:
DB_CONNECTION=mysql
DB_HOST=localhost
DB_NAME=projeto_todobicho
DB_USER=root
DB_PASS=
DB_PORT=3306
I try change the config in config.inc.php, but dosn't worked. In other post i read about create a new user and pass, but the same thing happen.
/* 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'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'root';
$cfg['Servers'][$i]['controlpass'] = '';