The following warning may appear in the Windows Event Log when restarting the MySQL service:
The syntax ‘–default-character-set’ is deprecated and will be removed in a future release. Please use –character-set-server instead.
Perform the following steps to prevent the warning:
- Open the MySQL configuration file,
i.e. C:\Program Files\MySQL\MySQL Server 5.1\my.ini
- In the
[mysqld]section change the line
- Save the file and restart the MySQL service.
If you use a character set other than UTF8, enter the corresponding value. Do not modify the
default-character-set setting in the
[mysql] section of the configuration file as it will break mysql.exe.
A solution to this problem was first posted in the MySQL Bug Tracker.