[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-glpk] MySQL Support for GLPK 4.23
From: |
xypron . glpk |
Subject: |
[Help-glpk] MySQL Support for GLPK 4.23 |
Date: |
Thu, 01 Nov 2007 21:05:59 +0100 |
Hello!
I have added MySQL database support to the GNU MathProg language in GLPK 4.23.
Sources are available at
ftp://87.230.79.59/glpk/glpk-4.23-sql-20071101.tar.gz
Library mysqlclient and header mysql/mysql.h are needed.
For Debian and derivates like Ubuntu:
sudo apt-get libmysqlclient15-dev
In the data section the following commands can be used to fill a set with data
from a data base query:
dbopen( 'MySQL', 'server', 'database', 'user', 'password');
dbquery(set, 'sql-query');
dbclose;
For an example see
glpk-4.23-sql-20071101/examples/mysql.mod
Only the Linux makefiles are updated. Windows files remain to be updated.
--enable-mysql has been added to configure.
Next step to do is to enable writing the calculation results to the data base.
I would appreciate Your comments.
Best regards
Xypron
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
- [Help-glpk] MySQL Support for GLPK 4.23,
xypron . glpk <=