I have CentOS 6.3 running on my laptop which is already connected to the net.

What is the command line to talk to MySQL server on my PC?

Both devices are connected via my router and they can talk to each other.


You need to know the ip-address of the PC where the MYSQL server is running using ifconfig command.

Then from your laptop, run the following command.

$ mysql --host=ip-address --user=user_name --password=password


   user_name = a user who have access to db,
   password  = password of the above user.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.