MySQL / Wamp Server Issues - Printable Version +- BP Forums (https://bpforums.info) +-- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=55) +--- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=56) +---- Forum: VB.NET (Visual Basic 2010/2008) (https://bpforums.info/forumdisplay.php?fid=8) +---- Thread: MySQL / Wamp Server Issues (/showthread.php?tid=519) |
MySQL / Wamp Server Issues - jaminben - 04-21-2012 Hi, I've been successfully using the example code from your YouTube tutorials "How to implement a database into VB.NET" for quite sometime but for some reason I cannot get my code to work when I run my Wamp Server on another machine. I use exactly the same code with exactly the same database/setup as what I have locally on my dev PC and with free SQL hosting sites like db4free.net without issues. Code: Imports MySql.Data.MySqlClient The above code works fine for a local connection but if I were to change the connection to another PC running on my local network then it wont connect. The connection string would be something like: Code: conn = New MySqlConnection("server=192.168.0.150; port=8080; user id=someuserid; password=somepassword; database=somedatabase") I've tried changing ports, opened ports in my firewall, uninstalled / reinstalled changing server to pc name etc but nothing seems to work (Wamp Server is Set to Online). I can connect fine to phpmyadmin using <!-- m --><a class="postlink" href="http://192.168.0.150:8080/phpmyadmin/">http://192.168.0.150:8080/phpmyadmin/</a><!-- m --> from any PC in my network but I just can't get the .NET code to connect. So I'm all out of ideas and thought I'd post here to see if anyone else has any suggestions.... please... getting desperate now <!-- s --><img src="{SMILIES_PATH}/icon_e_sad.gif" alt="" title="Sad" /><!-- s --> Thanks Ben Re: MySQL / Wamp Server Issues - jaminben - 04-22-2012 I got it worked out in the end... Just in case it helps anyone else here's what I didn't do correctly the first time. I needed to forward port 3306 (I did TCP & UDP). Doh!! Re: MySQL / Wamp Server Issues - brandonio21 - 04-22-2012 Doh! Well I'm glad you got it working!! <!-- s --><img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt="" title="Very Happy" /><!-- s --> |