mysql
Check if the server is running
# service mysql statusConnect to server using terminal client
# mysql -u root -pList existing databases
mysql> SHOW databases;Create a database
mysql> CREATE DATABASE database_name;Creating and granting rights to an user
mysql> CREATE USER "user_name"@"localhost" IDENTIFIED BY "password";
mysql> GRANT ALL PRIVILEGES ON database_name.* to "user_name"@"localhost";
mysql> FLUSH PRIVILEGES;Last updated