Hi,
I installed the mysql-server and client packages from the remote repo. I am trying to change the datadir configuration value but it always uses the default '/var/db/mysql'
I followed the instructions to make changes to '/usr/local/etc/mysql/my.cnf' and '/usr/local/etc/mysql/conf.d'
The datadir value used did not change.
I then defined the value mysql_optfile in /etc/rc.conf. Did not work.
I then did a 'truss service mysql-server start &> truss.out' and it showed the attempts to load the config file from several locations. None of them is '/usr/local/etc/mysql/my.cnf'. It tries :
/etc/my.cnf
/etc/mysql/my.cnf
/usr/local/etc/my.cnf
$(datadir)/my.cnf
And if I try any of these, the rc script complains that I have to merge those files with /usr/local/etc/mysql/conf.d/server.cnf.
I removed the check for the /etc/mysql/my.cnf, the script continued, but started with the default data directory.
So I hardcoded the path to the datadir on therc script and it works.
But I want to configure it from the my.cnf file.´
What do I have to do ?
Thanks,
Regards
I installed the mysql-server and client packages from the remote repo. I am trying to change the datadir configuration value but it always uses the default '/var/db/mysql'
I followed the instructions to make changes to '/usr/local/etc/mysql/my.cnf' and '/usr/local/etc/mysql/conf.d'
The datadir value used did not change.
I then defined the value mysql_optfile in /etc/rc.conf. Did not work.
I then did a 'truss service mysql-server start &> truss.out' and it showed the attempts to load the config file from several locations. None of them is '/usr/local/etc/mysql/my.cnf'. It tries :
/etc/my.cnf
/etc/mysql/my.cnf
/usr/local/etc/my.cnf
$(datadir)/my.cnf
And if I try any of these, the rc script complains that I have to merge those files with /usr/local/etc/mysql/conf.d/server.cnf.
I removed the check for the /etc/mysql/my.cnf, the script continued, but started with the default data directory.
So I hardcoded the path to the datadir on therc script and it works.
But I want to configure it from the my.cnf file.´
What do I have to do ?
Thanks,
Regards