How To Connect Remote Mysql Database

Reply

Join Date: Sep 2005
Posts: 1
Reputation: murali1 is an unknown quantity at this point 
Solved Threads: 0
murali1 murali1 is offline Offline
Newbie Poster

How To Connect Remote Mysql Database

 
0
  #1
Sep 20th, 2005
Hello everybody ,

Im created an Application in vb6.0 . In that application i have to store data in a web Mysql database.How can i connect tht
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 104
Reputation: Alvein is an unknown quantity at this point 
Solved Threads: 4
Alvein's Avatar
Alvein Alvein is offline Offline
Junior Poster

Re: How To Connect Remote Mysql Database

 
0
  #2
Sep 21st, 2005
Hi,

Assuming you have experience with ADO, you should download and install MySQL Connector, and then, use a connection string like:

Driver={MySQL ODBC 3.51 Driver};              
Database=database_name;                                                
Server=server_address;
Port=server_port;
Option=19;
Stmt=;
Uid=username;
Pwd=password

server_address can be also a name.
server_port will be 3306 most of time.

Hope this helps.
Last edited by Alvein; Sep 21st, 2005 at 12:16 am. Reason: Fix formatting
Damn it, I still dream of her....:(
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 3
Reputation: duongkhangth2 is an unknown quantity at this point 
Solved Threads: 0
duongkhangth2 duongkhangth2 is offline Offline
Newbie Poster

Re: How To Connect Remote Mysql Database

 
0
  #3
Apr 10th, 2008
Originally Posted by murali1 View Post
Hello everybody ,

Im created an Application in vb6.0 . In that application i have to store data in a web Mysql database.How can i connect tht

I'm the same murali , but my application write by java. It can only connect in local mysql, but doesn't connect in internet mysql.

Except you to help me.
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 1
Reputation: ajaym83 is an unknown quantity at this point 
Solved Threads: 0
ajaym83 ajaym83 is offline Offline
Newbie Poster

Re: How To Connect Remote Mysql Database

 
0
  #4
Jun 12th, 2008
Originally Posted by murali1 View Post
Hello everybody ,

Im created an Application in vb6.0 . In that application i have to store data in a web Mysql database.How can i connect tht
pls anybody have the ans
i m with same problem here
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,810
Reputation: ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all 
Solved Threads: 117
ithelp's Avatar
ithelp ithelp is offline Offline
Posting Virtuoso

Re: How To Connect Remote Mysql Database

 
0
  #5
Jun 13th, 2008
Originally Posted by ajaym83 View Post
pls anybody have the ans
i m with same problem here
Create a named entry for the database server use control panel->administrive tools->data source .
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,077
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 124
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: How To Connect Remote Mysql Database

 
0
  #6
Jun 13th, 2008
Are you able to connect to theweb database from your system ?

Please find connection details here.
Last edited by debasisdas; Jun 13th, 2008 at 5:34 am.
Share your Knowledge.
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 1
Reputation: murali789 is an unknown quantity at this point 
Solved Threads: 0
murali789 murali789 is offline Offline
Newbie Poster

Re: How To Connect Remote Mysql Database

 
0
  #7
Jun 27th, 2008
To connect to a MySQL server on a remote system:

mysql -h hostname -u root -p root

here hostname is (ex:192.168.20.27 for remote system)
"root " is the username.
-p is password you should provide.(Ex""root")
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,810
Reputation: ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all 
Solved Threads: 117
ithelp's Avatar
ithelp ithelp is offline Offline
Posting Virtuoso

Re: How To Connect Remote Mysql Database

 
0
  #8
Jun 29th, 2008
Connecting to mysql server as root should be discouraged .
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 66
Reputation: Baradaran is an unknown quantity at this point 
Solved Threads: 4
Baradaran Baradaran is offline Offline
Junior Poster in Training

Re: How To Connect Remote Mysql Database

 
0
  #9
Jun 29th, 2008
Murali, did you solve the problem?
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 1
Reputation: TokyoMokyo is an unknown quantity at this point 
Solved Threads: 0
TokyoMokyo's Avatar
TokyoMokyo TokyoMokyo is offline Offline
Newbie Poster

Re: How To Connect Remote Mysql Database

 
0
  #10
Jun 29th, 2008
This code a couple of minor bugs with string line continuations, but those are easy enough to fix:

http://www.base64.co.uk/mysql-odbc-driver/

1. Follow the link for the MySQL ODBC Driver and install it (if you haven't already).

2. Be sure to select the Microsoft Remote Data Object 2.0 in your project References.

3. Add your internet service provider as a Remote Database Access host through your control panel (i.e. %.fios.verizon.net).

The first time you attempt to make a connection, the MySQL ODBC Driver install will prompt you to confirm the connection with a pop-up window. It should not come up again.

I had to use my Control Panel User ID and Password to make this work. Virtual ID's did not work (i.e. MyAccountLogin_MyPHPUserID). The only virtual reference that did work was for the actual database itself (i.e. MyAccountLogin_MyDatabaseName).

The only thing left out of this sample is how to pull data fields from the result set. The comments suggest "reference it like !username", but I prefer using something like this:

strName = .rdoColumns.Item("Name")

Lastly, case matters for the table names in your SQL statements. If you have a table named "Products" in your database and you issue a query for a table named "products", it will bomb.

Everything after that should be relatively easy to figure out.

Hope this helps!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC