I try to configure mysql as mentioned here: https://websiteforstudents.com/install-erpnext-erp-platform-on-ubuntu-16-04-18-04-lts-with-nginx-mariadb-support/ on a Linux Mint 18.2 system.
I added innodb-file-format=barracuda
to the [mysqld]
section in /etc/mysql/mariadb.conf.d/50-server.cnf
and restarted the mysql service. But these settings are taking no effect.
If I run following commands
sudo mysql -u root -p
SHOW VARIABLES LIKE 'innodb_file_format';
then I get following output.
+--------------------+----------+
| Variable_name | Value |
+--------------------+----------+
| innodb_file_format | Antelope |
+--------------------+----------+
The settings file ~/.my.cnf
is not existing.
Why are my settings taking no effect?
++++++++++++ UPDATE 2019-06-03 ++++++++++++
I think I found the issue now. /etc/mysql/mariadb.conf.d/50-server.cnf
is the correct logfile and the settings were not overwritten by another *.cnf
-file. After a restart of the PC, the changed settings were used. The problem is, that restarting the mysql service (sudo service mysql restart
or sudo /etc/init.d/mysql restart
) is not enough.
So the question should be:
How do I correctly restart mysql so that changes in the *.cnf
-files get active?