zoukankan      html  css  js  c++  java
  • mysql5.6.36 源码安装过程

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

    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

  • 相关阅读:
    子矩阵
    [Ahoi2008]Meet 紧急集合
    立体图
    CF933B A Determined Cleanup
    CF746G New Roads
    树的重量
    CF519E A and B and Lecture Rooms
    矩阵
    深入浅出乘法逆元
    20180519模拟赛T2——pretty
  • 原文地址:https://www.cnblogs.com/elontian/p/7444537.html
Copyright © 2011-2022 走看看