Normal Topic Sesame to MySQL (Read 1786 times)
flobo
Member
*
Offline



Posts: 16
Location: Germany
Joined: Feb 20th, 2014
Sesame to MySQL
Aug 25th, 2015 at 8:58am
Print Post Print Post  
Hello everybody,

I was wondering if there is any solution to make Sesame to speak to an online-MySQL-Database.

It would be great to sync some Information between Sesame and a Website.

My only solution at this moment is to use the commands
HTTPGetHTML and HTTPPostHTML to retrieve and send (save to MySQL-Database via Form) the data.

I'm very interested in your ideas.
  
Back to top
 
IP Logged
 
The Cow
YaBB Administrator
*****
Offline



Posts: 2530
Joined: Nov 22nd, 2002
Re: Sesame to MySQL
Reply #1 - Aug 26th, 2015 at 4:08am
Print Post Print Post  
Here on the forum you can find several examples of using the SQL command line client directly from Sesame using @RedirectProcess. If you use the forum's search function, remember to set it to search all posts, rather than just this week or month, etc.

Using the command line client for MySQL (both from an earlier post):
Code
Select All
var aa as string

aa = @RedirectProcess("mysql --user=yourlogin --password=yourpassword", "show databases")
writeln(aa)
 



or

Code
Select All
var aa as string
var sql as string

sql = "USE dbtest;"
+     "SELECT * FROM AUTHORS;"
+     "GO"

aa = @RedirectProcess("mysql --user=you --password=pwd", sql)
writeln(aa)
 



Depending on how your SQL system is configured, locally or remotely, using the command line interface may be quite a bit more efficient than going through a HTML interface.
  

Mark Lasersohn&&Programmer&&Lantica Software, LLC
Back to top
IP Logged
 
flobo
Member
*
Offline



Posts: 16
Location: Germany
Joined: Feb 20th, 2014
Re: Sesame to MySQL
Reply #2 - Dec 15th, 2015 at 6:49am
Print Post Print Post  
Hello,

thank you very much for your example.

I tried it and it works very well.  Smiley
  
Back to top
 
IP Logged