Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
hello
Currently, i have my apache webserver on my computer and i want to connect it to MySQL server on my friend's computer.
we are connected through LAN. how can i do it?right now, i am using dummy database (MySQL) on my computer. i am connected to my own MySQL server by servlet using
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection con =DriverManager.getConnection("jdbc:mysql:///DataPool", "", "");and i've tried to connect to my friend's MySQL server by using it's IP
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection con =DriverManager.getConnection("jdbc:mysql://10.0.0.8/DataPool", "", "");but this didn't work.
can anyone give a solution of this matter? plz. i really need it.
Thx in advance.Athlon 64 2800+ @ 2.63 Ghz Stock Cooling
Timings:2-3-2-5
V-Gen 512MB pc3200 x 2
DFI Lanparty UT NF3
Abit R9550 VGuru XTurbo
525Mhz/300Mhz

You probably need to specify the port that MySql is listening on. Usually 3306. So something like:
getConnection("jdbc:mysql://10.0.0.8:3306/DataPool",
I would verify that I had connectivity *outside* of Java/JDBC first. Use the 'mysql' command line utility to do that.
Are you also sure you don't need a user ID and password? That would be unusual.
Good luck, Guy

nah, i have the userid and pass, but for security reasons, i prefered not to post it :)
thx Guy. i'll try it ASAP.
Athlon 64 2800+ @ 2.63 Ghz Stock Cooling
Timings:2-3-2-5
V-Gen 512MB pc3200 x 2
DFI Lanparty UT NF3
Abit R9550 VGuru XTurbo
525Mhz/300Mhz

![]() |
Dos, opening Directories ...
|
Partial file name search
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |