New to linux. I want to connect to mysql server from ubuntu terminal and execute commands, please help.

1 answers, votes, 9260 views
Visitor's picture
asked by Visitor
2 years 11 weeks ago



1 Answers

Answer

Launch terminal and execute following command
 
mysql -h <ipaddress> -u <username> -p
 
for example
 
mysql -h 10.11.12.13 -u john -p
 
This will prompt for the password, once successfully entered will show you the following mysql prompt
 
mysql> 

Visitor's picture
answer by Visitor
2 years 11 weeks ago
  • Thanks

    - Visitor 4 weeks 2 days ago
  • Ubuntu 11.04 released!

    Ubuntu 11.04 code named natty narwhal is released download ubuntu 11.04

    Read ubuntu 11.10 reviews and share yours now!!

    View in your own language!

    Stay Connected

    Ubun2.com on Facebook Ubun2.com on Twitter RSS Feeds

    Poll

    Favorite desktop environment?: