I have been researching this for close to 4 hours but still, I can’t connect my Invision Community 4 forum to my mysql ran on localhost with xampp.
I can connect from the shell, but I can’t connect to it from elsewhere.
Access denied for user 'root'@'localhost'
2
Answers
I think that remote root access is disabled by default. Run this SQL command via the shell:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION; FLUSH PRIVILEGES;
Most likely you don’t have the other "IPs" (like localhost) defined.
Follow these steps to fix it:
SELECT `Host`, `Password` FROM `mysql`.`user` WHERE USER = 'root';
pc
host has no password:SELECT CURRENT_USER();
:same password or not, and maybe update the one that you want to change.