Final answer:
MySQL server debug information can be stored to logs by editing the MySQL configuration file, such as 'my.cnf' or 'my.ini', and specifying the appropriate logging options. Changes require a server restart to take effect.
Step-by-step explanation:
To store MySQL server debug information to logs, the correct option is C) By editing the MySQL configuration file. The MySQL server can be configured to output debug information by modifying the configuration settings typically found in the 'my.cnf' or 'my.ini' file depending on the operating system you're using. To enable general debugging, you might include settings like log_error to specify the error log file, or general_log and general_log_file to enable and specify a general query log file, respectively.
There are other specific debugging options you can enable, such as log_slow_queries to log queries that take longer than a certain amount of time to execute. Once the desired debug settings have been added or updated in the configuration file, you must restart the MySQL server for the changes to take effect. It's important to note that enabling extensive logging can affect MySQL server performance and should be used judiciously, especially on production systems.