<< More Tips   |   Added On: 26/05/18   |    Category: Ubuntu    |    Number of Views: 335

Install MariaDB Database in Ubuntu and other Ubuntu based distributions (Part 1)

Part 1: Install MariaDB in Ubuntu
Part 2: Create a new user

To install MariaDB Database server in Ubuntu and other Ubuntu based distributions enter the following command in your terminal

sudo apt-get install mariadb-server

When MariaDB Database installs it will ask you to set a root password. If you plan to host your own MariaDB Database(s) online it is advisable to set a root password. If your just planning on hosting a local database to practice on, you can skip the root password.



After MariaDB Database has installed you need to login via the Terminal.

To login to MariaDB enter the following command in the terminal
mysql -u root -p


You will be asked to enter your root password, the one you set up whilst installing MariaDB. If you didn't enter a password just click enter.

If you logged in correctly, the MariaDB prompt will be displayed in the terminal.
From here you can create, insert, update, delete, databases, tables, create new users.

Linux Services

Buy Linux CDs, DVDs, USB Flash Drives from OSDisc.com

Buy Linux CDs, DVDs, USB Flash Drives from OSDisc.com

Run Windows software on Linux

Run Windows software on Linux with Crossover Office