I have installed MySQL and even logged in there as a user.
But when I try to connect like this:
http://localhost:3306
mysql://localhost:3306
Neither works. Not sure if both are supposed to work, but at least one of them should 🙂
How can I make sure that the port is indeed 3306? Is there a linux command to see it somehow?
Also, is there a more correct way to try it via a url?
To find a listener on a port, do this:
You should see a line that looks like this if mysql is indeed listening on that port.
Port 3306 is MySql’s default port.
To connect, you just have to use whatever client you require, such as the basic mysql client.
Or a url that is interpreted by your library code.