How to use mysql through cmd

We can use the mysql through cmd by following the simple commands

1.First open the cmd/terminal and go to the root directory by using this command :
2.Aftet root directroy  go inside  xampp/mysql/bin directory by using the following commands :
3.Now access your mysql by mysql username and password :
When you run the above command you will get the screen given below

if your root user has any password then enter the password and if root has no password press enter. After this you will enter in the mysql

Now use the command   show databases;  you will get all databases

if you use a particular database use this command
after this you can perform select, insert,update,delete operation on the tables available in this database.
If you want to see all available table inside a database use this command :

Anuj Kumar

I'm Anuj kumar a web developer with 4+ year experience .I write blogs in my free time. I love to learn new technologies and share with others. I founded PHPGurukul in September 2015. The main aim of this website to is provide php , jquery , mysql , phpoops and other web development tutorials. I am trying best effort to make PHPGurukul useful for every single moment spend on this website. If you think this website is useful to visit please share with your friend and buddies.

Recommended Tutorials for you

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *