mysql tar包安装,遇到的问题。在my.cnf 配置里,指定socket 的参数
# *** upgrade to a newer version of MySQL.
[client]
port = 3306
socket = /opt/mysql/data/mysql.sock
[mysqld]
#skip-grant-tables
socket = /opt/mysql/data/mysql.sock
# 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
# 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 = /opt/mysql
datadir = /opt/mysql/data