MySql Server Installation in Ubuntu 18.04
- March 28, 2019
- by
In this blog, We are going to install MySql server on Ubuntu 18.04 via Terminal.
Lets begin with the installation.
Step 1 :- In the terminal type the following command :-
sudo apt-get install mysql-server
If you enter in the mysql> as shown in the image above after typing the command then your installation is successful or else there's something wrong which you need to be corrected in order to complete the installation process of mysql.
Always give administrator right by writing sudo in front of your mysql command as shown in the image above, because sometimes mysql prompt doesnt pop up if you dont give the administrator rights to it.
Step 3 :- To view the existing databases, type the below command :-
show databases;
This will show you the existing databases in mysql.
Step 4 :- In order to exit from the mysql prompt type exit which will bring you to your original terminal of ubuntu.
Lets begin with the installation.
Step 1 :- In the terminal type the following command :-
sudo apt-get install mysql-server
Step 2 :- To check whether the installation of mysql was successful or not, type the below command in the terminal.
sudo mysql
Always give administrator right by writing sudo in front of your mysql command as shown in the image above, because sometimes mysql prompt doesnt pop up if you dont give the administrator rights to it.
Step 3 :- To view the existing databases, type the below command :-
show databases;
This will show you the existing databases in mysql.
Step 4 :- In order to exit from the mysql prompt type exit which will bring you to your original terminal of ubuntu.



0 comments:
Post a Comment