I need to find my MySQL username. When I open the MySQL command line client, it only asks me for my password. I don’t remember my username. And for connectivity with JDBC, I need the URL, host and port number. Where do I find all of these?
Share
If you’re already logged into the command line client try this:
It will output something similar to this:
In my example above, I was logged in as
rootfromlocalhost.To find port number and other interesting settings use this command: