<div dir="ltr">Yes, it is working.<div><br></div><div>The diff is incorrect, but comments in the bug track correct it. I used your method 2; method 1 didn't work and I think I know why: my testing has upset the directory structure.  I'll look into that after I get this project finished. </div><div><br></div><div>Susie</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 28, 2015 at 9:35 PM, Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
<br>
On Sun, 28 Jun 2015, Susie Nicol wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
<br>
This question has obviously been asked many times before, but I am having trouble dealing with the answers.<br>
<br>
I run MariaDB, rather than MYSQL, using OpenSUSE 13.2, with Lazarus 1.4, Free Pascal 2.6.4, downloaded from Sourceforge. I have the usual issue getting a database connection: "TMySQL56Connection can<br>
not work with the installed MySQL client version: Expected (5.6), got (10.0.13-MariaDB)"<br>
<br>
There's a diff associated with the bug report at <a href="http://bugs.freepascal.org/view.php?id=26620" rel="noreferrer" target="_blank">http://bugs.freepascal.org/view.php?id=26620</a> which I have attempted to apply, without success.<br>
<br>
What I tried was:<br>
<br>
 - patch /usr/share/fpsrc/2.6.4/packages/fcl-db/src/sqldb/mysql/mysqlconn.inc as in the diff<br>
 - rebuilt, using the Makefile in that directory<br>
 - within Lazarus, rebuilt the IDE.<br>
<br>
This hasn't achieved anything. I get the same error, which presumably means I have missed out some steps.<br>
<br>
I'm starting to find the documentation wiki "a mass of twisted passages, all alike". Is there a simple explanation of what I have missed?<br>
</blockquote>
<br></div></div>
Compiling is not enough. Did you install the .ppu ?<br>
<br>
Several ways are possible:<br>
<br>
1. The clean way<br>
   That is, in /usr/share/fpsrc/2.6.4/packages/fcl-db you should run "make install", as root.<br>
   But that may lead to other problems since you will have newer .ppu's of all<br>
<br>
2. find the newly generated mysql56conn.ppu and mysql56conn.o, and just copy these over the installed version<br>
<br>
And then rebuild lazarus.<br>
<br>
The simplest solution may be to:<br>
3. Simply copy 2 files: mysql56conn.pp and mysqlconn.inc from /usr/share/fpsrc/2.6.4/packages/fcl-db/src/sqldb/mysql  to your project's directory.<br>
   Recompile your project.<br>
   You will then not be able to make the connection in the lazarus form designer, but the compiled program should then work.<span class="HOEnZb"><font color="#888888"><br>
<br>
Michael.</font></span><br>--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" rel="noreferrer" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
<br></blockquote></div><br></div></div>