1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | yum install -y autoconf automake imake libxml2-devel expat-devel cmake gcc gcc-c++ libai libaio-devel bzr bison libtool ncurses5-devel mv /etc/my .cnf /etc/my .cnf.bk useradd -r mysql tar zxf mysql-5.6.26-linux-glibc2.5-x86_64. tar .gz -C /usr/local/ cd /usr/local/ ln -s mysql-5.6.26-linux-glibc2.5-x86_64/ mysql mkdir /mysqldata chown -R mysql.mysql /mysqldata/ cd mysql chown -R root.mysql ./* scripts /mysql_install_db --user=mysql --datadir= /mysqldata/ cp support-files /mysql .server /etc/init .d /mysqld chkconfig --add mysqld chkconfig mysqld on vim /etc/profile .d /mysql .sh export PATH=$PATH: /usr/local/mysql/bin . /etc/profile .d /mysql .sh vim my.cnf datadir = /mysqldata socket = /tmp/mysql .sock mysql_secure_installation service mysqld start |
查看与日志相关的变量:
mysql> SHOW GLOBAL VARIABLES LIKE '%log%';