Mariadb Notes

You might also like

Download as odt, pdf, or txt
Download as odt, pdf, or txt
You are on page 1of 1

To connect to MariaDB you need the following pieces of information:

■ The hostname (the name of the computer)—this is localhost if


connecting to a local MariaDB server
■ The port (if a port other than the default 3306 is used)
■ A valid user name
■ The user password (if required)

Selecting a Database

Input
USE crashcourse;

Output
Database changed

Learning About Databases and Tables



Input
SHOW DATABASES;

Output
+--------------------+
| Database
|
+--------------------+
| information_schema |
| crashcourse
|
| mysql
|
| forta
|
| coldfusion
|
| flex
|
| test
|
+--------------------+s

You might also like