jqkyp 发表于 2018-9-29 13:23:13

CentOS 中安装mysql5

shell> groupadd mysql  shell> useradd -g mysql mysql
  shell> cd /usr/local
  shell> gunzip < /PATH/TO/MYSQL-VERSION-OS.tar.gz | tar xvf -
  shell> ln -s FULL-PATH-TO-MYSQL-VERSION-OS mysql
  shell> cd mysql
  shell> scripts/mysql_install_db --user=mysql
  shell> chown -R root.
  shell> chown -R mysql data
  shell> chgrp -R mysql .
  shell> bin/mysqld_safe --user=mysql &

页: [1]
查看完整版本: CentOS 中安装mysql5