只针对mysql5.6,其他版本mysql_install_db步骤可能有所不同.
yum安装依赖包$yuminstallgcc-c++$yuminstallcmake$yuminstallmake$yuminstallbison.x86_64$yuminstallncurses-devel.x86_64
解压并编译mysql$tar-xzvfmysql.**.tar.gz$cd/usr/local/mysql$cmake.$makemakeinstall
常见用户组及用户$groupaddmysql$useradd-r-gmysqlmysql
安装MySQL$chmodscripts/mysql_install_db$scripts/mysql_install_db--user=mysql--basedir=/usr/local/mysql--datadir=/usr/local/mysql/data