maria-discuss team mailing list archive
-
maria-discuss team
-
Mailing list archive
-
Message #04652
Re: [mysqld] Can't find messagefile '/usr/share/mysql/errmsg.sys'
Hi,
I share the solution.
# cp ./support-files/my-medium.cnf /etc/my.cnf
/etc/mysql/my.cnf
# sed -i 's#lc-messages-dir.*=.*/usr/share/mysql#lc-messages-dir = /usr/local/mysql/share#g' /etc/mysql/my.cnf
# sed -i 's#basedir.*=.*/usr#basedir = /usr/local/mysql#g' /etc/mysql/my.cnf
# sed -i 's#datadir.*=.*/var/lib/mysql#datadir = /usr/local/mysql/data#g' /etc/mysql/my.cnf
/etc/my.cnf
# sed -i 's#socket.*=.*/tmp/mysql.sock#socket = /var/run/mysqld/mysqld.sock#g' /etc/my.cnf
# my_print_defaults --mysqld
Thanks for the help.
Guillermo Céspedes
Full Stack Developer
> El 29 jun. 2017, a las 14:18, Guillermo Cespedes <dev.dertin@xxxxxxxxx> escribió:
>
> Thanks, I'll use the command:
>
> # sed -i 's/ PATH_OLD / PATH_NEW' /etc/mysql/my.cnf
> …
>
> Regards.
> Guillermo Céspedes
> Full Stack Developer
>
>
>
>> El 29 jun. 2017, a las 14:11, Sergei Golubchik <serg@xxxxxxxxxxx> escribió:
>>
>> Hi, Guillermo!
>>
>> On Jun 29, Guillermo Cespedes wrote:
>>> Hi, Sergei.
>>>
>>> I have two my.cnf files: /etc/my.cnf and /etc/mysql/my.cnf
>>>
>>> In /etc/mysql/my.cnf:
>>>
>>> basedir, datadir and lc-messages-dir
>>>
>>> They are pointing to an incorrect directory.
>>>
>>> I can avoid this when I compile mariadb, or I have to modify it after compiling. ?
>>
>> It's in the manual, did you try to look there?
>>
>> https://mariadb.com/kb/en/mariadb/configuring-mariadb-with-mycnf/
>>
>> Regards,
>> Sergei
>> Chief Architect MariaDB
>> and security@xxxxxxxxxxx
>
References