Connecting to a remote MySQl server on cygwin -


i try connecting remote mysql server on ip 10.198.161.41

when give

mysql -u user -p -h 10.198.161.41

output:

enter password: error 2003 (hy000): can't connect mysql server on '10.198.161.41' (111)

the mysqld on 10.198.161.41 runs on port 4308.

should mentioned in command?

there no my.cnf file in cygwin.

what try?

(info:the 10.198.161.41 windows machine , has mysqld running on it) 

if use mysql different port 3306 mysql default port must mention connect per below-

mysql -u user -p -h 10.198.161.41 -p 4308 

here small p denotes password , caps p port.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -