-2
我想下载MySQL源代码。然后我也想安装它并在Linux环境下将其编译到我的电脑中。我怎样才能做到这一点?请帮帮我。在哪里以及如何下载MySQL源代码?
我想下载MySQL源代码。然后我也想安装它并在Linux环境下将其编译到我的电脑中。我怎样才能做到这一点?请帮帮我。在哪里以及如何下载MySQL源代码?
除了应用补丁程序或学习之外,没有什么好的理由这样做。如果您在个人计算机以外的任何设备上安装此软件,请考虑使用您的分发包管理器。从the docs这些supported platforms:
之前您继续从源代码安装,检查甲骨文是否会产生对你的平台预编译的二进制分发,以及它是否适合你。我们花费了大量精力确保我们的二进制文件具有最佳性能的最佳选项。
验证您的系统满足在Section 2.8, “Installing MySQL from Source”列出的工具的需求。
使用Section 2.1.2, “How to Get MySQL”中的说明获取分配文件。
配置,构建和安装分布:exact steps required安装正确的工具和下载源代码后:
。
# 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
不指定操作系统,所以: