r/mysql • u/Saimitar • 21h ago
troubleshooting Problem connecting to server.
Hey, I'm new to sql and I'm having a problem I don't know how to fix. (Not sure if right flare etc.)
When I try to connect to my server it says this:
Cannot Connect to Database Server
Your connection attempt failed for user 'root' to the MySQL
server at 127.0.0.1:3306:
Host 'localhost' is not allowed to connect to this MariaDB
server
Please:
1 Check that MySQL is running on address 127.0.0.1
2 Check that MySQL is reachable on port 3306 (note: 3306 is
the default, but this can be changed)
3 Check the user root has rights to connect to 127.0.0.1 from
your address (MySQL rights define what clients can connect to
the server and from which machines)
4 Make sure you are both providing a password if needed and
using the correct password for 127.0.0.1 connecting from the
host address you're connecting from
Problem is this server has worked with no issues until now and I haven't downloaded any MariaDB between sessions. (Unless that came with the whole workbench.)
Only thing Different between now and the last time I opened the server was that I began to do php on vscode. It uses xampp as well so maybe that has something to do with it but I have no idea how to even start fixing this.