狐狸情 发表于 2018-10-7 07:34:27

mysql安装错误

  问题!!
  # ./scripts/mysql_install_db --user=mysql --datadir=/data/mysql
  FATAL ERROR: please install the following Perl modules before executing ./scripts/mysql_install_db:
  Data::Dumper
  解决办法安装
  # yum install -y autoconf
  # yum list|grep -i perl |grep -i dumper
  perl-Data-Dumper.x86_64                  2.145-3.el7                   base
  2.
  Installing MySQL system tables..../bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
  # yum list |grep 'libaio'
  # yum install -y libaio-devel.x86_64
  3.启动报错Starting MySQL.Logging to '/data/mysql/localhost.localdomain.err'.
  ./usr/local/mysql/bin/mysqld_safe: line 178:2830 Killed                  nohup /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/data/mysql --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/data/mysql/localhost.localdomain.err --pid-file=/data/mysql/localhost.localdomain.pid < /dev/null > /dev/null 2>&1
  ERROR! The server quit without updating PID file (/data/mysql/localhost.localdomain.pid).
  解决办法:
  1.cd /usr/local/mysql(进入mysql安装目录)
  2.chown -R mysql.mysql .
  3.su - mysql
  4.cd /usr/local/mysql
  5.scripts/mysql_install_db

页: [1]
查看完整版本: mysql安装错误