Skip to content

Instantly share code, notes, and snippets.

@codeprimate
Last active March 1, 2016 16:45
Show Gist options
  • Select an option

  • Save codeprimate/c432d9b8a079709c1b1a to your computer and use it in GitHub Desktop.

Select an option

Save codeprimate/c432d9b8a079709c1b1a to your computer and use it in GitHub Desktop.
MySQL Client Error

Problem

The following error message is thrown when attempting to start the MySQL client.

mysql: [ERROR] Found option without preceding group in config file /usr/local/etc/my.cnf at line 1!
mysql: [ERROR] Fatal error in defaults handling. Program aborted!

Solution

The error is due to a UTF-8 character at the beginning of the file.

Open my.cnf with Vim and issue the following normal mode command

:set nobomb
:w
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment