How to use Mysql from command Prompt
To connect to Mysql from command Prompt you need to follow
these simple steps
- First you should have Mysql Server installed in your system
- To connect to Mysql from cmd you have to set the class path
- Right click on computer->properties->Advance System settings->advanced->environment variables->System variables->path
- Add the path of Mysql server till bin as follows
- C:\program files\mysql\mysql server 5.1\bin
- Now you can connect to Mysql from command prompt
- Open cmd and type as follows
- C:\Users\Personal>mysql -uroot –proot and yes you are connected to Mysql
No comments:
Post a Comment