zoukankan      html  css  js  c++  java
  • MySQL5.1安裝部署文檔

    1.cd /application/

    2.tar zxf mysql-5.1.68.tar.gz

    3.cd mysql-5.1.68

    4.groupadd mysql

    5.useradd -g mysql -M mysql

    6../configure --prefix=/usr/local/mysql --with-unix-socket-path=/usr/local/mysql/tmp/mysql.sock --localstatedir=/usr/local/mysql/data --enable-assembler --enable-thread-safe-client --with-mysqld-user=mysql --with-big-tables --with-pthread --without-debug --with-extra-charsets=complex --with-readline --with-ssl --with-embedded-server --enable-local-infile--with-plugins=partition,innobase --with-plugin-PLUGIN --with-mysqld-ldflags=-all-static --with-client-ldflags=-all-static

    报错:checking for termcap functions library... configure: error: No curses/termcap library found

    解决:

    wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz

    tar zxvf ncurses-5.9.tar.gz

    cd ncurses-5.9

    ./configure --with-shared --without-debug --without-ada --enable-overwrite

    make

    make install clean

    :装ncurses-5.6.tar.gz在make install时会报错

    ? tic could not build /usr/share/terminfo
    make[1]: *** [install.data] Error 1
    make[1]: Leaving directory `/lamp/ncurses-5.6/misc'
    make: *** [install] Error 2

    安装ncurses-5.9.tar.gz

    7.make -j 4

    8.make install

    9.ln -s /application/mysql-5.1.68 /application/mysql

    10.ll support-files/*.cnf   配置文件

    11. /bin/cp support-files/my-small.cnf /etc/my.cnf

    12.mkdir -p /usr/local/mysql/data  创建数据文件

    13.chown -R mysql /usr/local/mysql

    14./usr/local/mysql/bin/mysql_install_db --user=mysql --datadir=/usr/local/mysql/data --basedir=/usr/local/mysql

    初始化

    1. cp /usr/local/mysql/share/mysql/mysql.server /usr/local/mysql/bin/
    2. chmod 700 /usr/local/mysql/bin/mysql.server

    17./usr/local/mysql/bin/mysql.server start

    18.echo 'export PATH=$PATH:/usr/local/mysql/bin'>>/etc/profile

    19.source /etc/profile

    20.mysql.server start

    21.cp /usr/local/mysql/bin/mysql.server /etc/init.d/mysqld

    22. chmod 700 /etc/init.d/mysqld

    23./etc/init.d/mysqld restart

    24.netstat -anlpt|grep mysqld

    25.chkconfig --add mysqld

    26.mysql

  • 相关阅读:
    NT头 IMAGE_NT_HEADER
    组合框
    列表框消息大全
    滚动条
    列表框
    超级列表框
    按钮
    EDIT编辑框
    15. 三数之和
    268. 缺失数字
  • 原文地址:https://www.cnblogs.com/guoxiaobao/p/9479290.html
Copyright © 2011-2022 走看看