Sep-24-2021, 08:19 PM
Without providing a server and a port, it assumes the server is 127.0.0.1 (your local machine) and the port is 3306. But you're not running a mysql server there (or if you are, it isn't reachable).
You need to put the server that is running the mysql in your connect() initializer.
You need to put the server that is running the mysql in your connect() initializer.