Skip to content

Instantly share code, notes, and snippets.

@jruels
Last active December 31, 2015 09:49
Show Gist options
  • Save jruels/7968976 to your computer and use it in GitHub Desktop.
Save jruels/7968976 to your computer and use it in GitHub Desktop.
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
#user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
## Replication
#server-id = 2
#master-connect-retry=60
#relay-log = /var/lib/mysql/mysql-relay-bin
#relay-log-index = /var/lib/mysql/mysql-relay-bin.index
#master-info-file = /var/lib/mysql/mysql-master.info
#relay-log-info-file = /var/lib/mysql/mysql-relay-log.info
#log-bin = /var/lib/mysql/mysql-bin
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
netstat -tuplan|grep -i mysql
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 6639/mysqld
mysql 6639 6.7 44.9 1069524 455936 pts/1 Sl 04:38 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --port=3306
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment