Skip to main content

How to load the sample database into the MariaDB server.


1. Download  the Sample Database 

2. unzip the file to a directory e.g., c:\mariadb\nation.sql

2.  connect to the MariaDB server with the root user account, type the password and press the  Enter keyboard.

sudo mysql -u root -p
Enter password: ********

3.  Load the database by using the source command:

mysql>source c:\mariadb\nation.sql

4. select the nation database and display tables of the database:
mysql> use nation; Database changed mysql> show tables;




Comments

Popular posts from this blog

Backslash on mac

I had been struggling to type back slash ( \) character on mac japanese keyboard as they don't have it printed on the keyboard, and I was doing copy paste all the time from google when i needed to type it until recently a tip came to my rescue , shortcut to backslash on mac japanese keyboard. Alt + ¥  Hope it helps others.