<div dir="ltr">Are there any tools that would expect my.cnf in /etc/mysql, and therefore might break if MariaDB is installed rather than MySQL? Certainly many client programs would expect it there (without specifying the path anyway), and therefore you'd probably still need to install mysql-common alongside. That could lead to confusion about which settings are being used.<div>

<br></div><div>Data directory path shouldn't really matter on the other hand IMO, since such tools should really be reading that from the config file.</div><div style><br></div><div style>-Steve</div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On 17 April 2013 08:03, Norvald H. Ryeng <span dir="ltr"><<a href="mailto:norvald.ryeng@oracle.com" target="_blank">norvald.ryeng@oracle.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Thu, 11 Apr 2013 08:21:05 +0200, Otto Kekäläinen <<a href="mailto:otto@fsfe.org" target="_blank">otto@fsfe.org</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
We've discussed with Clint/SpamapS whether or not we should package<br>
MariaDB with different paths from current MySQL and Clint suggested we<br>
should discuss the matter on this list too. The two options are<br>
described below - what are you opinions?<br>
<br>
<br>
Option 1: same /etc/mysql and /var/lib/mysql for both MySQL and MariaDB<br>
- the packages have Breaks-dependencies, so they will never be<br>
installed at the same time and not use the same files at the same time<br>
- at least for versions 5.5., MySQL and MariaDB are binary compatible<br>
and you can switch the configs and database files back and forth<br>
(MariaDB has some extra configs but MySQL ignores them, so it does not<br>
matter)<br>
- this is how MariaDB upstream does it<br>
- if in the future the compability situation changes, we can package<br>
5.6/10, 11, 12 etc in a different way and in fact will automatically<br>
anyway package it differently if upstream changes any path or filename<br>
from mysql to mariadb.<br>
<br>
Option 2: use make options to get MariaDB install into /etc/mariadb<br>
and /var/lib/mariadb<br>
</blockquote>
<br></div>
IMHO, this sounds like the best option.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- the packages would still have Breaks-dependencies and not be<br>
installable at the same time (as they occupy the same 3306 port when<br>
running)<br>
- if MySQL is installed and the end-user runs "apt-get install<br>
mariadb-server", an automatic migration script would copy the MySQL<br>
databases into the MariaDB directories and when installing<br>
mysql-server there wouldn't be any automatic migration in the other<br>
way<br>
</blockquote>
<br></div>
Why not migration both ways?<br>
<br>
A migration tool would be useful, but I'm not sure it should be run<br>
automatically. At least, it would have to leave existing data alone if you<br>
already have both /var/lib/mysql and /var/lib/mariadb. We don't want to<br>
overwrite old databases the user may have.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- even though 5.5. versions are still binary compatible, this kind of<br>
packaging for any MariaDB version would perhaps be better future-proof<br>
as the variable config and database files are not exposed to the<br>
possibility of going back to MySQL use at any later point<br>
- this is *not* how upstream MariaDB currently does it, so packaging<br>
would need to maintain a patch that touches the 252 occurences of<br>
"var/lib/mysql" and the 97 occurences of "etc/mysql" when converting<br>
the upstream tar.gz into a Debian source package.<br>
</blockquote>
<br></div>
I don't know the details of the MariaDB build system, but setting<br>
MYSQL_DATADIR and SYSCONFDIR in cmake may reduce the size of the patch.<br>
<br>
Regards,<br>
<br>
Norvald H. Ryeng<div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
pkg-mysql-maint mailing list<br>
<a href="mailto:pkg-mysql-maint@lists.alioth.debian.org" target="_blank">pkg-mysql-maint@lists.alioth.<u></u>debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-mysql-maint" target="_blank">http://lists.alioth.debian.<u></u>org/cgi-bin/mailman/listinfo/<u></u>pkg-mysql-maint</a></div></div></blockquote></div><br>

</div>