May 2017
Beginner
552 pages
28h 47m
English
MySQL and MariaDB are not always present in the base Linux distribution. They can be installed as either mysql-server and mysql-client or the mariadb-server package. The MariaDB distribution uses MySQL as a command and is sometimes installed when the MySQL package is requested.
MySQL supports a username and password for authentication. You will be prompted for a password during the installation.
Use the mysql command to create a new database on a fresh installation. After you create the database with the CREATE DATABASE command, you can select it for use with the use command. Once a database is selected, standard SQL commands can be used to create tables and insert data:
$> mysql -user=root -password=PASSWORD Welcome to the ...