-->

Hello,This is me!

ITEngineer8995

Professional Coder Coding is my passion

Thursday, March 28, 2019

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




Step 2 :- To check whether the installation of mysql was successful or not, type the below command in the terminal.

                sudo mysql

 

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.

A blog full of codes of various languages like Java, .net, C, C++ etc with their outputs and some other IT stuff.

0 comments:

Post a Comment

ITEngineer8995
India

SEND ME A MESSAGE

Search This Blog

Powered by Blogger.

Pages