You can configure MySQL to read a wide variety of startup options from a file named my.cnf. Settings are scoped and can be overridden by file location:
Scope | Location | Override |
|---|---|---|
global |
|
|
server-specific | binary install: | global |
user |
| global, server-specific |
Below is a minimalist MySQL 5.1 configuration file for a development laptop /etc/my.cnf:
| No Format |
|---|
[mysqld]
default-storage-engine=InnoDB
lower_case_table_names=1
|
Restart MySQL in order for the new settings to take effect.