Hello,
If I set the settings below to my /my.cnf file, MySQL doesn't start:
But when I comment them out, everything is back to normal. I really don't get why... could anyone help me understand?
Thank you.
If I set the settings below to my /my.cnf file, MySQL doesn't start:
Code:
log-error=/var/log/mysql/mysqld.log
log_slow_queries = /var/log/mysql/mysql-slow.log
But when I comment them out, everything is back to normal. I really don't get why... could anyone help me understand?
root@FreeBSD:/ # vi /usr/local/my.cnf
Code:
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
[mysqld]
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M
# InnoDB one index file per table
innodb_file_per_table
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....
# socket = .....
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
# Setting for utf8 encoding
character-set-server=utf8 # UTF-8
collation-server=utf8_general_ci # UTF-8
skip-character-set-client-handshake # UTF-8
#### MySQL Hardening ####
# Disable symlinks from database
skip-symbolic-links
# Disable unauthorized reading from local files
local-infile=0
# Enable logs in mysql server
#log-error=/var/log/mysqld.log
#log_slow_queries = /var/log/mysql/mysql-slow.log
long_query_time = 5
# Disable TCP networking
skip-networking
# Set non default port
port = 2913
# Stop database information gathering
skip-show-database
Thank you.