ITPub博客

首页 > 数据库 > MySQL > install mysql from source

install mysql from source

原创 MySQL 作者:netwant 时间:2013-08-22 16:29:01 0 删除 编辑
linux mysql 5.6 source code install[@more@]
# isntall cmake
shell>tar -zxvf cmake.tar.gz
shell>./bootstrap
shell>make
shell>make install
# Preconfiguration setup
shell> groupadd mysql
shell> useradd -r -g mysql mysql
# Beginning of source-build specific instructions
shell> tar zxvf mysql-VERSION.tar.gz
shell> cd mysql-VERSION
shell> cmake .
shell> make
shell> make install
# End of source-build specific instructions
# Postinstallation setup
shell> cd /usr/local/mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
shell> bin/mysqld_safe --user=mysql &
# Next command is optional
shell> cp support-files/mysql.server /etc/init.d/mysql.server

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/309902/viewspace-1060871/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: oracle 10046
请登录后发表评论 登录
全部评论

注册时间:2010-11-17

  • 博文量
    61
  • 访问量
    180996