CentOS5.5 MySql 5.1.49的安装、优化及安全设置
下载页面:sql/downloads/mysql/5.0.html#downloads
到页面底部,到Source downloads,这个是源码版本,下载第1个Tarball
wget u.edu.tw/Downloads/MySQL-5.1/mysql-5.1.
Mysql5.1.49版本真是速度滴就出来了。
wget u.edu.tw/Downloads/MySQL-5.1/MySQL-server-community-5.1.49-1.rhel5.i386.rpm
wget u.edu.tw/Downloads/MySQL-5.1/MySQL-client-community-5.1.49-1.rhel5.i386.rpm
今天花了近一天的时间来安装mysql,终于在最后成功了。真是太折腾人了。至于为什么选
到页面底部,到Source downloads,这个是源码版本,下载第1个Tarball
wget u.edu.tw/Downloads/MySQL-5.1/mysql-5.1.
Mysql5.1.49版本真是速度滴就出来了。
wget u.edu.tw/Downloads/MySQL-5.1/MySQL-server-community-5.1.49-1.rhel5.i386.rpm
wget u.edu.tw/Downloads/MySQL-5.1/MySQL-client-community-5.1.49-1.rhel5.i386.rpm
今天花了近一天的时间来安装mysql,终于在最后成功了。真是太折腾人了。至于为什么选
用source code来安装而不选用rpm,主要是在网上查到rpm不能指定安装目录,这是我不喜欢的。
首先下载mysql-5.1. 二进制转换十进制10001
-yum remove mysql //删除CentOS上自带的老版本mysql
centos和ubuntu-groupadd mysql
-useradd -g mysql mysql
首先下载mysql-5.1. 二进制转换十进制10001
-yum remove mysql //删除CentOS上自带的老版本mysql
centos和ubuntu-groupadd mysql
-useradd -g mysql mysql
在编辑MYSQL时:
#./configure --prefix=/usr/local/mysql --with-charset=gb2312 --with-extra-charsets=all
执行后出现如下错误:
checking for tgetent in -ltermcap… no
checking for termcap functions library… configure: error: No curses/termcap library found
checking for termcap functions library… configure: error: No curses/termcap library found
解决方法:
手机接口编译时加上路径即可解决,即
#./configure --prefix=/usr/local/mysql --with-charset=gb2312 --with-extra-charsets=all --with-named-curses-libs=/usr/lib/libncurses.so.5
#./configure --prefix=/usr/local/mysql --with-charset=gb2312 --with-extra-charsets=all --with-named-curses-libs=/usr/lib/libncurses.so.5
如果是Ubuntu,需要安装.sudo apt-get install libncurses5-dev
如果Ubuntu上安装了VMwareTools-版本号.则不需要安装libncurses5-dev,在编译时加上
--with-named-curses-libs=/usr/lib/libncurses.so.5
/bin/rm: cannot remove `libtoolT': No such file or directory错误
在执行./configure 之前,先执行:
# autoreconf --force --install
# libtoolize --automake --force
# automake --force --add-missing
编译配置参数
./configure –help 查看选项
./configure \
–prefix=/mysql \
–localstatedir=/data \
–sysconfdir=/mysql \
–with-unix-socket-path=/mysql/mysql.sock \
jquery选择器的用法
–prefix=/mysql \
–localstatedir=/data \
–sysconfdir=/mysql \
–with-unix-socket-path=/mysql/mysql.sock \
jquery选择器的用法
自学编程游戏–with-charset=utf8 \
–with-collation=utf8_general_ci \
–with-extra-charsets=gbk,latin1 \
–with-plugins=partition,blackhole,heap,innobase,myisam,ndbcluster,csv,federated \
–without-debug \
–enable-thread-safe-client \
–enable-assembler \
–enable-profiling \
–with-mysqld-ldflags=-all-static \
–with-client-ldflags=-all-static \
–with-mysqld-user=mysql \
–without-embedded-server \
–with-server-suffix=-community \
ambient–with-tcp-port=3306
–with-collation=utf8_general_ci \
–with-extra-charsets=gbk,latin1 \
–with-plugins=partition,blackhole,heap,innobase,myisam,ndbcluster,csv,federated \
–without-debug \
–enable-thread-safe-client \
–enable-assembler \
–enable-profiling \
–with-mysqld-ldflags=-all-static \
–with-client-ldflags=-all-static \
–with-mysqld-user=mysql \
–without-embedded-server \
–with-server-suffix=-community \
ambient–with-tcp-port=3306
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论