当前位置:操作系统 > Unix/Linux >>

linux下的二进制安装

以root身份登录

  1.#adduser 新建一个用户mysql,组mysql

  2.把下载的mysql-XXX.tar.gz拷贝到 /usr/local/下

  3.# cd /usr/local/

  # gunzip < mysql-XXX.tar.gz | tar xvf-

  # ln -s mysql-XXX mysql

  # cd mysql

  # scripts/mysql_install_db

  # chown -R root /usr/local/mysql

  # chown -R mysql /usr/local/mysql/data

  # chgrp -R mysql /usr/local/mysql

  # chown -R root /usr/local/mysql/bin

  # bin/safe_mysqld --user=mysql &
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,