This is from our config.inc.php. Edit this document. Notice the user=root
and the password '1234'. That password is my demo password, but if you are not able to connect to your localhost database, just change the password to the new password you change in the database.
Do not change anything else. You don't have to close your browser or exit from your localhost. Just refresh the browser when you change the password. I hope this works for anyone who cannot access the SQL database in localhost.
'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '1234';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';
''@localhost'
You have not entered a user account. Note the bit before the@
is empty – RiggsFollymysql -uroot -p
whereroot
is whatever your account name should be! – RiggsFollyroot
this account has ALL privilages and will allow you to create other users. But you have to login successfully to usingroot
and its password. It may not have a password, in which case just hit enter when you get the password challenge – RiggsFolly