环境centOS6.9 MariaDB10.1.8
yum -y install ncurses-devel yum -y install gcc-c++
mariadb10.1.8,cmake3.8.2
tar xfz cmake-3.8.2.tar.gz cd cmake-3.8.2 ./bootstrap make make install cmake --version
groupadd mysql useradd -r -g mysql -s /sbin/nologin mysql mkdir -p /home/data/mariadbdata chown -R mysql:mysql /home/data/mariadbdata
tar xfz mariadb-10.1.8.tar.gz cd mariadb-10.1.8 cmake . -DCMAKE_INSTALL_PREFIX=/home/opt/mariadb -DMYSQL_DATADIR=/home/date/mariadbdata -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci make make install
cp -pv /home/opt/mariadb/support-files/my-innodb-heavy-4G.cnf /home/opt/mariadb/my.cnf scripts/mysql_install_db --defaults-file=${INSTALL_DIR}/my.cnf --user=mysql --basedir=/home/opt/mariadb --datadir=/home/date/mariadbdata
cp -pv ${INSTALL_DIR}/support-files/mysql.server /etc/init.d/mariadb chkconfig --add /etc/init.d/mariadb chkconfig --list mariadb service mariadb start
Navicat for MySQL怎么导入数据表?- Navicat for MySQL导入数据表教程攻略
Navicat for MySQL怎么查询表中数据?- Navicat for MySQL查询表中数据教程攻略