Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:
Description
Our .deb packages include a default my.cnf file which sets sql_mode=NO_ENGINE_SUBSTITUTION,TRADITIONAL
This is a change from the MySQL packages in stock Debian and Ubuntu, which do not set sql_mode in their default my.cnf, and so default to a less strict sql_mode.
One could argue that the stricter sql_mode is a better default. However, in practice it causes problems.
The problem is that there are other packages in Debian that depend on a MySQL (or MariaDB) server, and which do not work with this stricter sql_mode.
One such example is Wordpress. We have had several people have problems after installing MariaDB and Wordpress with apt, and then finding it does not work (I had the issue myself). The users then think that MariaDB is not compatible with Wordpress, when in reality it is just the sql_mode that is not supported by Wordpress.
So we have to change the default sql_mode to be the same as MySQL Debian packages, so that a default install of the Debian Wordpress package will work with MariaDB.
A user that understands my.cnf and sql_mode can easily change it as desired. A user that does not will be confused by Wordpress not working.
I will change the default my.cnf for the next release.
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Re: .deb sql_mode default breaks wordpress and similar applications
Fix should be in 5.1.56 and 5.2.6