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

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.



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 831d2 in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |