
If the option's name has changed, then fix the name.If the option is completely invalid, then remove it from the option file.Possible fixes are usually one of the following: Therefore, it's possible for an option file to stop working after an upgrade.Īlso remember that option names are case sensitive.Įxamine the specifics of the error. However, occasionally, options are removed in new versions of MariaDB, or the valid values for options are changed in new versions of MariaDB. In most cases the option file from the old version of MariaDB will work just fine with the new version.
#FAIL STARTING MYSQL DATABASE SERVER UPGRADE#
This is more likely to happen when you upgrade to a new version of MariaDB. In those cases, the error log should contain an error similar to this: 140514 12:19:37 /usr/local/mysql/bin/mysqld: unknown variable 'option=value' Invalid Option or Option ValueĪnother potential reason for a startup failure is that an option file contains an invalid option or an invalid option value. See Configuring MariaDB with Option Files: Checking Program Options for more information on checking configuration options. You can also check by executing the following command: my_print_defaults -mysqld You can check which configuration options MariaDB server will use from its option files by executing the following command: mysqld -print-defaults If you're unsure where the option file is located, see Configuring MariaDB with Option Files: Default Option File Locations for information on the default locations.

Option files contain configuration options, such as the location of the data directory mentioned above. The default option file is called my.cnf. Mysqld -help -verbose | grep 'datadir' | tail -1Īnother kind of file to consider when troubleshooting is option files. See Option Files below for more information about that.Ī quick way to get the values of these system variables is to execute the following commands: mysqld -help -verbose | grep 'log-error' | tail -1 This is often done by changing the datadir or log_error system variables in an option file. It's also possible that the error log has been explicitly written to another location. C:\Program Files (x86)\MariaDB x.y\data (32bit version on 64bit Windows).

