Home > Database > Mysql Tutorial > 从源码安装mysql

从源码安装mysql

WBOY
Release: 2016-06-07 15:40:42
Original
1264 people have browsed it

首先参考iteye上的一篇博文: http://haiouc.iteye.com/blog/1779771 从这个台湾的源下载源码包比较快: http://ftp.nchu.edu.tw/Unix/Database/MySQL/Downloads/MySQL-5.1/ 其中编译前的配置命令: ./configure --prefix=/usr/local/mysql --with-charset=g

首先参考iteye上的一篇博文:

    http://haiouc.iteye.com/blog/1779771

从这个台湾的源下载源码包比较快:

    http://ftp.nchu.edu.tw/Unix/Database/MySQL/Downloads/MySQL-5.1/

其中编译前的配置命令:

    ./configure --prefix=/usr/local/mysql --with-charset=gbk --with-extral-charsets=all --enable-thread-safe-client

中的extra误打成了extral。


另外参考官方的资料:

    http://dev.mysql.com/doc/refman/5.1/zh/installing.html#linux-rpm

见第2.8.1节(源码安装概述)和2.8.2节(典型配置选项)


安装完之后开启mysql服务:

    systemctl  enable mysqld.service

    systemctl start mysqld.service

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template