Answers for "mysql hostname command line"

SQL
3

mysql cli connect with password

mysql --user=root --password=mypass
Posted by: Guest on July-01-2020
0

what is mysql hostname

If you're already logged into the command line client try this:

mysql> select user();
It will output something similar to this:

+----------------+
| user()         |
+----------------+
| root@localhost |
+----------------+
1 row in set (0.41 sec)
In my example above, I was logged in as root from localhost.

To find port number and other interesting settings use this command:

mysql> show variables;
Posted by: Guest on March-16-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language