Home > Database > Mysql Tutorial > Fedora 17源码安装mysql

Fedora 17源码安装mysql

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 15:12:36
Original
1134 people have browsed it

欢迎进入Linux社区论坛,与200万技术人员互动交流 >>进入 配置时会报一个错误:/usr/bin/rm: cannot remove 'libtoolT': No such file or directory #vi configure 查找cfgfile 注释掉 $RM “$cfgfile” 推出保存:wq 重新#./configure --prefix=/usr/local/

欢迎进入Linux社区论坛,与200万技术人员互动交流 >>进入


    
    配置时会报一个错误:/usr/bin/rm: cannot remove 'libtoolT': No such file or directory
   
    #vi configure
   
    查找cfgfile
   
    注释掉  $RM “$cfgfile”
   
    推出保存:wq
   
    重新#./configure --prefix=/usr/local/mysql

Fedora 17源码安装mysql
    #make
   
    #make install
   
    5.给mysql目录设定root权限
   
    #cd /usr/local
   
    #chown -R mysql:mysql mysql
   
    6.初始数据安装
   
    #cd /usr/local/mysql/bin
   
    #./mysql_install_db --user=mysql
   
    安装后会在/usr/local/mysql/var/下面产生mysql,test两个文件目录,需要再设置权限
   
    #cd /usr/local
   
    #chown -R mysql:mysql mysql
   
    #./mysqld_safe --user=mysql
   
    登陆mysql
   
    #./mysql -u root -p
   
    出现下面的就是OK了
   
    mysql>
   
    7.以后使用下面的命令,启动、停止和重启服务
   
    #cd /usr/local/mysql/share/mysql
   
    启动
   
    #./mysql.server start
   
    停止
   
    #./mysql.server stop
   
    重启
   
    #./mysql.server restart
   

  [1] [2] [3] 

Fedora 17源码安装mysql

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