Comments - my.cnf

10 years, 11 months ago openiduser26

When MariaDB (and mysql) are installed from scratch, no my.cnf file is installed.

You can see the search path for the my.cnf file by using the following command: sudo mysqld --help --verbose | grep cnf

The normal search path is: /etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf /.my.cnf

So create a /etc/my.cnf file. --- cut here --- [client] port = 3306

[mysqld] port=3306 --- end cut ---

Note that you are going to want to change other defaults. If you want to use InnoDB you must tune at least innodb_buffer_pool_size and innodb_log_file_size. If using MyISAM adjust key_buffer_size, read_buffer_size, key_cache_division_limit, etc.

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.