mysql5.6.36.0安装_mysql5.6.36 源码安装过程

参考:http://www.linuxidc.com/Linux/2015-06/119354.htm

28f75a2306ad12011f508b4cf204c5d2.png

68ee37404c6297860bcfaf665d7464fb.png

cmake编译时,提示错误

CMake Error: The source directory "/tools/mysql-5.6.36-linux-glibc2.5-x86_64" does not appear to contain CMakeLists.txt.

Specify --help for usage, or press the help button on the CMake GUI.

mysql-5.6.36-linux-glibc2.5-x86_64是安装过的二进制包,是编译好了的,里面本身就没有cmakelists.txt 简单一句话,就是下载的包不对,不是源码包。里面就没有相关的cmake等文件。

[root@vhost1 ~]# cp -r /tools/mysql-5.6.25-linux-glibc2.5-x86_64 /application/

[root@vhost1 ~]# ln -s /application/mysql-5.6.25-linux-glibc2.5-x86_64 /application/mysql5.6

进入安装路径,执行初始化配置脚本,创建系统自带的数据库和表

[root@vhost1 ~]# cd /application/mysql5.6/scripts/

[root@vhost1 ~]# mysql_install_db --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql

启动mysql

添加服务,拷贝服务脚本到init.d目录,并设置开机启动

[root@vhost1 mysql5.6]#cp support-files/mysql.server /etc/init.d/mysql

[root@vhost1 mysql5.6]# chkconfig mysql on

启动mysql

[root@vhost1 mysql5.6]# service mysql start

查看mysql是否启动成功

[root@localhost mysql]# netstat -lntp | grep 3306

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值