How to connect to a remote MySQL database using Linux terminal
MySQL is an open-source relational database management system (RDBMS).
In this article we will connect to remote MySQL database in the simple way. After you setup a user with proper access rights run the below commands.
$ mysql -u yourUser -p -h
Lets explanation the above command:
-u tells mysql what is your username
-p tells mysql you have a password and will prompt you to enter it after you press enter
-h tells mysql the hostname or IP address of your MySQL server
You can learn more form MySQL database documentationcomments powered by Disqus