简体   繁体   中英

MySQL remote access from windows cmd prompt

I am new to MySQL. There is an environment where mysql is installed and DB set up in an Linux server. Is it possible to access the db using windows command prompt? What would be the best way to access the db remotely from windows machine?

You have to use the -h option

mysql -u<user> -p -h <dbhost>

for example:

mysql -uroot -p -h myql.servername.com 

Your user needs remote permissions at your host.

If you are a new user , use some gui tool to control mysql like https://code.google.com/p/sqlyog/wiki/Downloads . It will be easier for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM