Chapter 7. Startup Variables

Table of Contents

Introduction

Introduction

This section allows you to set variables that the MySQL server reads on startup. These variables are stored in the option file of the server. On Windows, the option file is called my.ini, and it is located in the Windows installation directory (for example, C:\WinNT\my.ini). Note that it can alternatively be stored in C:\, in which case it is named my.cnf. Also note that there can be more than one option file. On operating systems other than Windows, the option file is called my.cnf, regardless where it resides. On Windows, MySQL Administrator allows you to store the option file in any location you specify. You can find more information on the MySQL option files in the Option Files section.

Note that the server reads variables stored in the option files only at server start. Therefore, you have to restart the server for the changes to take effect. You can do this using the Stop Server and Start Server button in the Service Control section.