FreeKB - Connect to mySQL or MariaDB
Connect to mySQL or MariaDB

Home > Search


This assumes you have installed mySQL or MariaDB, and you are now ready to connect. On the command line, you will use the mysql command and the -u (username) and -p (password) options to connect. Type the password entered during the mysql_secure_installation and you should be connected.

[root@server1 ~]# mysql -u root -p
Enter password:

 

Once successfully connect, you will be at the mysql prompt, like this.

mysql>

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 14de5 in the box below so that we can be sure you are a human.




Comments