visual studio 2010 - Connecting to a MYSQL Database without using TCP/IP Ports -
i'm using vb2010 , mysql create network software solution.
normally, i'd use port 3306 when creating connections program database.
driver={mysql odbc 5.2 ansi driver};server=servername;database=dbname;uid=root;pwd=password;option=3; always works fine on campus, local network program, doesn't require external access.
however, there way of connecting mysql database without using tcp/ip port configuration. if ever need distribute software site, may not able firewall rules changed allow 3306 through.
there 4 ways connect mysql server:
protocol value | connection protocol | permissible operating systems tcp | tcp/ip connection local or remote server | socket | unix socket file connection local server | unix pipe | named-pipe connection local or remote server | windows memory | shared-memory connection local server | windows as can see, there other options connect mysql server, other methods either platform specific or cannot used access remote servers. obviously, can tunnel mysql connection through port. can use tunneling on both client , server side. latter 1 purely sysadmin / dba question, details rather ask on dba or serverfault sister sites.
Comments
Post a Comment