Home > Database > Mysql Tutorial > body text

mysql5.6的安装srv

WBOY
Release: 2016-06-07 15:40:09
Original
1128 people have browsed it

传统的方法中 [root@server182 ~]# tar -zxvf mysql-5.6.10.tar.gz [root@server182 ~]# cd mysql-5.6.10 [root@server182 mysql-5.6.10]# cmake . [root@server182 mysql-5.6.10]# make make install 在make这一步,会出现一个关于srv_buf_size没有定义的错

传统的方法中

[root@server182 ~]# tar -zxvf mysql-5.6.10.tar.gz 
[root@server182 ~]# cd mysql-5.6.10 
[root@server182 mysql-5.6.10]# cmake . 
[root@server182 mysql-5.6.10]# make && make install
Copy after login

在make这一步,会出现一个关于srv_buf_size没有定义的错误。

解决办法:

将cmake这一步修改成

sed -i "/ADD_SUBDIRECTORY(sql\/share)/d" CMakeLists.txt && sed -i "s/ADD_SUBDIRECTORY(libmysql)/&\\nADD_SUBDIRECTORY(sql\/share)/" CMakeLists.txt && sed -i "s@data/test@\${INSTALL_MYSQLSHAREDIR}@g" sql/CMakeLists.txt && sed -i "s@data/mysql@\${INSTALL_MYSQLTESTDIR}@g" sql/CMakeLists.txt && sed -i "s/srv_buf_size/srv_sort_buf_size/" storage/innobase/row/row0log.cc && cmake .
Copy after login

然后问题解决~

具体参考:

http://database.51cto.com/art/201304/388452.htm

http://www.92cto.com/blog/881.html

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!