Wednesday, September 28, 2011

Connecting to MySql DB Through Terminal



Mysql Client Syntax :
mysql -u {mysql-user} -p {mysql-password} -h {mysql-server}

Example command:
mysql -u root -p testPassword -h localhost

 -- it will connect to mysql DB and session will be created.


As usual we can work on this session.
All normal commands will work.

For further Help: Type " man mysql "

It will show more additional options.

No comments:

Post a Comment