Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - daniel123

Pages: [1]
1
CentOS-WebPanel Bugs / Re: Can't read my.cnf file bug
« on: April 30, 2018, 09:09:53 AM »
Hi all,

the problem here is that my.cnf needs to be saved with the new line at the end of the file. Some editors, e.g. vim do it automatically and they put a "new line" character at the end of each file - without having the user to actually see it - so it appears that the file ends with the very last character.

However if you open this file up with with a different editor, e.g. Mousepad, you will find out that tere is an extra line - a new line - at the end of the file. If there is not - that is the problem - because MySQL fails to process that kind of configuration.

Apparently there is a standard for having files end with a new line. Some software upholds it strictly (e.g. MySQL) and that's why we can find this error in MySQL explicitely.

Details: https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline

I hope I've saved someone a whole lotta of trouble researching this bug. :)

Pages: [1]