Database on Linux Server

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Duke
Newbie
Posts: 1
Joined: Mon Nov 12, 2007 2:44 pm

Database on Linux Server

Post by Duke » Mon Nov 12, 2007 3:04 pm

I am Sorry for my English.

I want to connect, from a Windows XP PC, to a MySQL Database on a Linux Server (Ubuntu 7.10).

I need ADODB for Linux, I think , and i found this:
http://adodb.sourceforge.net/
I am not sure, whether this will work.

Will this works? Or do you have any other Idea how to connect to a Database on Linux Server with Macro Scheduler?

edit: And i am Sorry, if "Beginners" is wrong for this Subject.

edit2: Do i need to install ADODB on client or server? both, right?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Nov 12, 2007 4:35 pm

You don't need ADODB for Linux. You just need the MySQL ODBC drivers:
http://www.mysql.com/products/connector/odbc/

We use this ourselves. We have a MySQL database on a Linux server and Macro Scheduler connects from Windows via the MySQL ODBC connection.

You will also need to create a user under MySQL with remote access privileges and ensure the MySQL port is open (at least for your IP).
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Alpha_AI
Pro Scripter
Posts: 61
Joined: Wed Sep 19, 2007 9:30 am

Connecting to a remote mysql database?? how?

Post by Alpha_AI » Wed Nov 14, 2007 1:19 pm

so are you saying that i can create macroscript that can connect to a remote mysql database and send select statements to a mysql database and receive the values and then do something with them?

how would i do that? Im more interested in connecting to a remote mysql database than a local mysql database;

This is would be something useful.

Ben

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Nov 14, 2007 1:42 pm

>so are you saying that i can create macroscript that can
>connect to a remote mysql database and send select
>statements to a mysql database and receive the values and
>then do something with them?

Yes

>how would i do that?

Just as you would any other ODBC data source.

Install the MySQL ODBC drivers:
http://www.mysql.com/products/connector/odbc/
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

shamigc
Junior Coder
Posts: 37
Joined: Wed Oct 22, 2003 11:38 am
Location: Monterrey, Mexico

MySql Example

Post by shamigc » Sat Nov 24, 2007 12:54 am

Could you please send a short code example of how to connect and how to select information from a MySQL database?

Thanks,
Salvador Hernandez
Thanks,
Salvador Hernandez

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts