Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Tue May 22, 2018 5:08 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: How can I connect MySQL Database from other computer?
PostPosted: Sun Mar 10, 2013 5:08 am 
Offline

Joined: Sat Oct 22, 2011 11:30 pm
Posts: 4
Dear All;

I am very new to RS. I have been using Visual Foxpro till today.

Can anybody help me to connect MySQL Database residing on another computer?

Regards.


Top
 Profile  
Reply with quote  
 Post subject: Re: How can I connect MySQL Database from other computer?
PostPosted: Sun Mar 10, 2013 4:03 pm 
Offline

Joined: Sun Jan 28, 2007 2:38 pm
Posts: 231
1. Set up a new Property "MyDatabase' in the App Class (if desktop app) or session class (if web app)

Then call something like:

MyDatabase = New MySQLCommunityServer
MyDatabase.Host = "127.0.0.1" //Wherever....
MyDatabase.Port = 3306 //or whatever port it on
MyDatabase.DatabaseName = "Your_Database_name"
MyDatabase.UserName = "Your_UserName"
MyDatabase.Password = "Your_{password"
MyDatabase.MultiThreaded=false // There is a bug in the mysql plugin it is not thread safe so set it to false until the finish the plugin fix.

If MyDatabase.Connect Then
//You are good to go
Else
//Handle Error
End If


Top
 Profile  
Reply with quote  
 Post subject: Re: How can I connect MySQL Database from other computer?
PostPosted: Wed Mar 13, 2013 10:45 am 
Offline

Joined: Tue Nov 08, 2005 12:47 pm
Posts: 93
You should also be sure the MySQL database will accept connections from the machine you are trying to connect from.
Make sure when configuring users you setup the host as either % or the named host you are connecting from.

Good luck.

Chris


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group