How To Access Remote MySQL Database in VB6

  • (2 Pages)
  • +
  • 1
  • 2

29 Replies - 1386 Views - Last Post: 01 February 2012 - 03:11 AM Rate Topic: -----

Topic Sponsor:

#16 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 211
  • View blog
  • Posts: 1,249
  • Joined: 26-March 09

Re: How To Access Remote MySQL Database in VB6

Posted 31 January 2012 - 08:01 AM

Sorry I can't be more helpful at the moment, i'm at work and no access to MySQL to try anything out.
Was This Post Helpful? 0
  • +
  • -

#17 Kenta  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 02-December 11

Re: How To Access Remote MySQL Database in VB6

Posted 31 January 2012 - 09:37 AM

That's fine,.. Thanks anyway for the help... I will try to find some solutions regarding with this problem...
Was This Post Helpful? 0
  • +
  • -

#18 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 211
  • View blog
  • Posts: 1,249
  • Joined: 26-March 09

Re: How To Access Remote MySQL Database in VB6

Posted 31 January 2012 - 10:24 AM

Does that mean you still have the connection issues?

Have you tried connecting to the MySQL database using a standard management tool on your dev PC across the same network?

If you can connect with the management tool, then it would point at your program and vice-versa.

Something like this portable tool, should do the trick for testing purposes.
Was This Post Helpful? 0
  • +
  • -

#19 Kenta  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 02-December 11

Re: How To Access Remote MySQL Database in VB6

Posted 31 January 2012 - 10:41 AM

Yes, unfortunately I still have the connection issue...

I already downloaded the "databaseBrowserPortable" from the link you gave to me but I don't know how to use it. forgive my ignorance... This is my first time encountering this kind of tool...
Was This Post Helpful? 0
  • +
  • -

#20 Kenta  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 02-December 11

Re: How To Access Remote MySQL Database in VB6

Posted 31 January 2012 - 11:04 AM

I already tried it and the result was, if my connection was only at the localhost, it is connected... but if I will change it from localhost to the IP address of my server it gives me an error...

Can't connect to MySQL server on 'xxx.254.236.245' (10061) Socket error on connect. WSAGEtLastError return 10061($274D)


Was This Post Helpful? 0
  • +
  • -

#21 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 211
  • View blog
  • Posts: 1,249
  • Joined: 26-March 09

Re: How To Access Remote MySQL Database in VB6

Posted 31 January 2012 - 11:07 AM

OK, so in that case we can rule out your software for now.

How have you got your network setup as your IP Address that you've shown, looks strange?

Can you access things on the server from your dev PC, just files in general?
Was This Post Helpful? 0
  • +
  • -

#22 Kenta  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 02-December 11

Re: How To Access Remote MySQL Database in VB6

Posted 31 January 2012 - 11:32 AM

After trying for several times, even I am connecting at the localhost using "DatabaseBrowserPortable" will give me now an error

Unable to create key 'SOFTWARE\DB SOFWARE Laboratory\Connection properties'



another problem to be solved, I think.

Do you have some idea where I can configure my MySQL database to give permission to be accessed by a user??? Even a PHP program can't connect with my server database because the server is "actively refusing"...

I thought if I can access the phpmyAdmin (forbidden by default) of my WAMPSERVER at the server side, I already have the permission to connect from its database.
Was This Post Helpful? 0
  • +
  • -

#23 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 211
  • View blog
  • Posts: 1,249
  • Joined: 26-March 09

Re: How To Access Remote MySQL Database in VB6

Posted 31 January 2012 - 11:40 AM

See if this helps at all...seems remote access is disabled by default.
Was This Post Helpful? 0
  • +
  • -

#24 Kenta  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 02-December 11

Re: How To Access Remote MySQL Database in VB6

Posted 31 January 2012 - 11:48 AM

I used a cross-over cable (RJ45) to connect the PC and Laptop. I Installed the wampserver for the PC to act as the server. I can ping both of the end devices and I can also share some files by putting it at the shared documents. I can access also the phpmyAdmin of the server which by default, it was "Forbidden"... From the phpmyadmin, I can edit and change the values of the server's database. But my problem is, the VB app in my laptop, can't connect to the server PC even if I already created a new user account and grant all privileges. :cry2:

I really don't know what is wrong with it.
Was This Post Helpful? 0
  • +
  • -

#25 Kenta  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 02-December 11

Re: How To Access Remote MySQL Database in VB6

Posted 31 January 2012 - 11:58 AM

I already tried that linked and if I changed the bind-address to the server IP address, The WAMPSERVER won't start its services (especially MySQL services)... I visited also some sites that encountered problems like mine. Their solutions were simple and it works fine for them. I don't know why it's not for me...
Was This Post Helpful? 0
  • +
  • -

#26 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 211
  • View blog
  • Posts: 1,249
  • Joined: 26-March 09

Re: How To Access Remote MySQL Database in VB6

Posted 31 January 2012 - 01:19 PM

Yep, that's kind of where I'm at. It "should" be relatively straight forward.

Sorry mate, it's getting a little out of my area of expertise. I've done a little bit of connecting to MySQL, but it's normally just worked.
Was This Post Helpful? 0
  • +
  • -

#27 Kenta  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 02-December 11

Re: How To Access Remote MySQL Database in VB6

Posted 31 January 2012 - 01:49 PM

Thank you for your time...

I just hope I can resolve this problem and fix this as soon as possible...

I have to go now,.. I really appreciate your help.. again... thanks a lot...
Was This Post Helpful? 0
  • +
  • -

#28 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 211
  • View blog
  • Posts: 1,249
  • Joined: 26-March 09

Re: How To Access Remote MySQL Database in VB6

Posted 01 February 2012 - 01:19 AM

OK, Lets take a step backwards and cover some of the things we've gone through....

You say you can access it through phpMyAdmin? I'm not a php developer, so have little knowledge of it and it's tools, but isn't phpMyAdmin, not for administrating PHP as opposed to MySQL?

If you run the DB Browser tool on your "server" machine, can you connect to the MySQL DB, using the Machine IP address or Name, not the local 127.0.0.1 type address?

I think we should start at the beginning, ensure things are working on the "server" and then look at expanding it out over the network, as there are too many variables at the moment.
Was This Post Helpful? 0
  • +
  • -

#29 Kenta  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 02-December 11

Re: How To Access Remote MySQL Database in VB6

Posted 01 February 2012 - 02:40 AM

You're right,.. When I change my connection string, I can't access my database using machine IP address or its name... I really don't have the idea how to fix it... :sweatdrop:
Was This Post Helpful? 0
  • +
  • -

#30 maj3091  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 211
  • View blog
  • Posts: 1,249
  • Joined: 26-March 09

Re: How To Access Remote MySQL Database in VB6

Posted 01 February 2012 - 03:11 AM

Found this statement on this site

Quote

Q16 : Why can't i connect to mysql from remote computers or from the local machine if i use my ip or domain instead of localhost ?

By default mysql is configured to only listen on the loopback interface (127.0.0.1/localhost) so connecting from it from outside or another interfaces is not posible by default as it is not something recomended or generally wanted/needed

If you change the value of bind-address in my.ini to your public ip or whatever ip/hostname you want to run mysql on , that can be accesible from the outside , and mysql will be accesible from the outside too , you can alos remove that line alltoghether and make mysql bind on all interfaces

Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2