office-gobmx/mysqlc/source
2010-10-05 18:13:37 +02:00
..
description nativeb: #i111039#: changed extension description 2010-04-21 14:30:56 +02:00
registry/data/org/openoffice/Office/DataAccess mysqlconnector: initial import from CWS mysqlnative 2009-12-11 09:51:25 +01:00
DataAccess.xcu mysqlconnector: initial import from CWS mysqlnative 2009-12-11 09:51:25 +01:00
delzip mysqlconnector: initial import from CWS mysqlnative 2009-12-11 09:51:25 +01:00
description.xml remove useless license prompt for extensions 2010-09-15 14:06:36 +02:00
exports.dxp mysqlconnector: initial import from CWS mysqlnative 2009-12-11 09:51:25 +01:00
makefile.mk nativeb: #i110985#: changed extension icons again 2010-04-21 08:25:26 +02:00
manifest.xml mysqlconnector: initial import from CWS mysqlnative 2009-12-11 09:51:25 +01:00
mysqlc.map mysqlconnector: initial import from CWS mysqlnative 2009-12-11 09:51:25 +01:00
mysqlc.xml mysqlconnector: initial import from CWS mysqlnative 2009-12-11 09:51:25 +01:00
mysqlc_connection.cxx DEV300 masterfix: #i10000#: juggle inclusion order to make mysqlc compilable on STLPort platforms 2010-04-19 17:18:27 +02:00
mysqlc_connection.hxx cmcfixes73: #i110068# unify headers in one place 2010-03-12 09:15:29 +00:00
mysqlc_databasemetadata.cxx cmcfixes73: #i110068# unify headers in one place 2010-03-12 09:15:29 +00:00
mysqlc_databasemetadata.hxx more removed include guards using fixguard.py 2010-10-05 18:13:37 +02:00
mysqlc_driver.cxx cmcfixes73: #i110068# unify headers in one place 2010-03-12 09:15:29 +00:00
mysqlc_driver.hxx cmcfixes73: #i110068# unify headers in one place 2010-03-12 09:15:29 +00:00
mysqlc_general.cxx cmcfixes73: #i110068# unify headers in one place 2010-03-12 09:15:29 +00:00
mysqlc_general.hxx DEV300 masterfix: #i10000#: juggle inclusion order to make mysqlc compilable on STLPort platforms 2010-04-19 17:18:27 +02:00
mysqlc_preparedstatement.cxx cmcfixes73: #i110068# unify headers in one place 2010-03-12 09:15:29 +00:00
mysqlc_preparedstatement.hxx more removed include guards using fixguard.py 2010-10-05 18:13:37 +02:00
mysqlc_propertyids.cxx remove include guards using fixguard.py 2010-10-05 18:13:36 +02:00
mysqlc_propertyids.hxx mysqlconnector: initial import from CWS mysqlnative 2009-12-11 09:51:25 +01:00
mysqlc_resultset.cxx dba33g: #i112274# throw exception when trying to insert, update or delete rows, which is currently not supported at the driver 2010-07-09 08:01:25 +02:00
mysqlc_resultset.hxx mysqlconnector: initial import from CWS mysqlnative 2009-12-11 09:51:25 +01:00
mysqlc_resultsetmetadata.cxx mysqlconnector: initial import from CWS mysqlnative 2009-12-11 09:51:25 +01:00
mysqlc_resultsetmetadata.hxx cmcfixes73: #i110068# unify headers in one place 2010-03-12 09:15:29 +00:00
mysqlc_services.cxx mysqlconnector: initial import from CWS mysqlnative 2009-12-11 09:51:25 +01:00
mysqlc_statement.cxx mysqlconnector: initial import from CWS mysqlnative 2009-12-11 09:51:25 +01:00
mysqlc_statement.hxx cmcfixes73: #i110068# unify headers in one place 2010-03-12 09:15:29 +00:00
mysqlc_subcomponent.hxx more removed include guards using fixguard.py 2010-10-05 18:13:37 +02:00
mysqlc_types.cxx mysqlconnector: initial import from CWS mysqlnative 2009-12-11 09:51:25 +01:00
mysqlc_types.hxx mysqlconnector: initial import from CWS mysqlnative 2009-12-11 09:51:25 +01:00
README mysqlconnector: initial import from CWS mysqlnative 2009-12-11 09:51:25 +01:00

---------- Status -------------------------------------------------------------

The code is on a PREVIEW level. PREVIEW means pre-alpha.

---------- Requirements -------------------------------------------------------

The MySQL driver for OpenOffice.org (MySQL Connector/OpenOffice.org - C/OOo)
requires two external libraries to be build:

 1) The MySQL Client Library (libmysql)
 2) The MySQL Connector/C++ Library (libmysqlcppcon)

At the time of writing neither of the two libraries are part of the CWS!
Before you can build the MySQL driver for OpenOffice.org you must install
the two required libraries on your system before you can compile the driver.

You need the two libraries because the MySQL driver for OpenOffice.org
does not feature an implementation of the MySQL Client Server
communication protocol. The protocol implementation is part of the MySQL
Client Library. And the SDBC(X) style OpenOffice.org driver is implemented as a
wrapper of the MySQL Connector/C++ Library which implements a JDBC interface and
in turn uses the C based MySQL Client Library.

1) MySQL Client Library (libmysql)

The MySQL Client Library (libmysql) is part of the MySQL Server. You need to
download and install the MySQL Server. Use a binary distribution of
MySQL 5.0.x or MySQL 5.1.x. Check the MySQL manual for instructions, e.g.
for Unix:

 http://dev.mysql.com/doc/refman/5.1/en/installing-binary.html

The typical installation path of the libmysql.so on Unix is
/usr/local/mysql/lib/mysql/ .

2) MySQL Connector/C++ (libmysqlcppcon)

Download and install the latest version of the MySQL Connector/C++, see
http://forge.mysql.com/wiki/Connector_C++ . Check out the source
from the bzr repository.

3) Tweaking library paths

At the time of writing you might have to *manually* tweak library paths and
library names by patching makefile.mk. This is a temporary hack. The makefile
will be improved later.

However, for the moment check the makefile.mk if the compilation fails due to
"missing" libraries (= libraries not found). For example, check the following
settings:

  MYSQL_INCDIR=/usr/local/include
  MYSQL_LIBDIR=/usr/local/lib
  [...]
  MYSQL_INCDIR=/usr/local/include
  MYSQL_LIBDIR=/usr/local/lib
  [...]
  MYSQL_INC=-I$(MYSQL_INCDIR)
  MYSQL_LIB=-L$(MYSQL_LIBDIR) -lmysqlclient -rdynamic -lz -lcrypt -lnsl -lm
  MYSQL_LIBFILE=$(MYSQL_LIBDIR)$/libmysqlclient.so.16
  MYSQL_CPPCONN_LIBFILE=$(MYSQL_LIBDIR)$/libmysqlcppconn.so
  [...]

A common issue is libmysqlclient.so.15 vs. libmysqlclient.so.16 .