Bug #82254 mysql-systemd-start
Submitted: 17 Jul 2016 11:20 Modified: 2 Dec 2016 10:47
Reporter: Gunter Grodotzki (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Packaging Severity:S2 (Serious)
Version:5.7 OS:Debian
Assigned to: Lars Tangvald CPU Architecture:Any

[17 Jul 2016 11:20] Gunter Grodotzki
Description:
On MySQL 5.7 with Debian 8 (Jessie) and systemd, having multiple configuration directives overwriting each other can cause the following error:

/usr/share/mysql/mysql-systemd-start: line 43: [: too many arguments

How to repeat:
add the datadir directive multiple times and run "/usr/share/mysql/mysql-systemd-start pre"

Suggested fix:
This happens as having multiple directives of the same key will yield multiple outputs when using the command: my_print_defaults.

A patch will be included in this report.
[17 Jul 2016 11:25] Gunter Grodotzki
mysql-systemd-start.patch

Attachment: mysql-systemd-start.patch (application/octet-stream, text), 346 bytes.

[17 Jul 2016 20:00] Terje Røsten
Hi!

Thanks for your report!
[2 Dec 2016 10:47] Lars Tangvald
Posted by developer:
 
This was fixed with the deb packaging refactoring