This question already has an answer here:
- MySQL Error: : 'Access denied for user 'root'@'localhost' 11 answers
- Access denied for user 'root'@'localhost' while attempting to grant privileges. How do I grant privileges? 12 answers
- ERROR 1698 (28000): Access denied for user 'root'@'localhost' 11 answers
- Fix Access denied for user 'root'@'localhost' for phpMyAdmin 15 answers
- MySQL ERROR 1045 (28000): Access denied for user 'bill'@'localhost' (using password: YES) 33 answers
I have an ecommerce website and i m trying to move from localhost windows to linux mint localhost.. I can log in to phpmyadmin , so i know the root and the password, i changed the config.inc.php and AllowNoPassword = True but when i try localhost/ecommerce i get access denied and Using PAssword (NO)..
$db = mysqli_connect('localhost', 'root', 'admin', 'ecommerce');
if(mysqli_connect_errno()) {
echo 'Database connection failed with following errors: '.mysqli_connect_error();
die();
</div>