MySql from Command prompt

To Access your MySql Database server via command prompt steps are as follows:
1.Connect to Database server.
2.Select Database
3.Run MySql Queries.

Commands for all these steps:
1.Connect to database.--

Enter the bin directory of database like -
c:\cd C:\xampp\mysql\bin

Connect to databse server:

C:\>..\bin\mysql -u username -h localhost -p [press enter]
will prmpt for password
Enter password >

now..connect to database:-
mysql> use [databasename]

now start executing quieries
>

enjoy MySql queries ....
best of luck

Comments

Popular posts from this blog

XML Programming using IXMLDOMDOCUMENT in vc++

Get correct OS version on win 8.1 without using GetVesionEx API (deprecated )