install mysql from source

本文提供了一步一步的指南,详细说明如何在 Linux 系统上安装 MySQL 5.6 数据库。从配置环境到完成安装,包括创建用户组、添加用户、解压源代码、配置、编译、安装等关键步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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博客 ” ,链接:http://blog.itpub.net/309902/viewspace-1060871/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/309902/viewspace-1060871/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值