易胜博总结-做月子可以吃胡萝卜排骨吗

首页

AD联系:507867812

易胜博总结

时间:2019-11-18 15:02:32 作者:澳门认证线缆管理方案哪家强 浏览量:49245

易胜博总结MySQL 5.5.8 源代码编译安装MySQL 5.5.8 源代码编译安装MySQL 5.5.8 源代码编译安装MySQL 5.5.8 源代码编译安装MySQL 5.5.8 源代码编译安装MySQL 5.5.8 源代码编译安装MySQL 5.5.8 源代码编译安装,见下图

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux

MySQL 5.5.8 源代码编译安装MySQL 5.5.8 源代码编译安装,见下图

MySQL 5.5.8 源代码编译安装

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux,如下图

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux

如下图

MySQL 5.5.8 源代码编译安装,如下图

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装,见图

易胜博总结

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux

MySQL 5.5.8 源代码编译安装

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装MySQL 5.5.8 源代码编译安装

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux

MySQL 5.5.8 源代码编译安装

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装MySQL 5.5.8 源代码编译安装

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装。

MySQL 5.5.8 源代码编译安装

易胜博总结MySQL 5.5.8 源代码编译安装

MySQL 5.5.8 源代码编译安装MySQL 5.5.8 源代码编译安装MySQL 5.5.8 源代码编译安装

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux

MySQL 5.5.8 源代码编译安装

1.MySQL 5.5.8 源代码编译安装

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装MySQL 5.5.8 源代码编译安装MySQL 5.5.8 源代码编译安装

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装

2.

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装

3.

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装MySQL 5.5.8 源代码编译安装

4.

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装MySQL 5.5.8 源代码编译安装

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装MySQL 5.5.8 源代码编译安装MySQL 5.5.8 源代码编译安装MySQL 5.5.8 源代码编译安装

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linuxMySQL 5.5.8 源代码编译安装。易胜博总结

展开全文
相关文章
天森康宝

MySQL 5.5.8 源代码编译安装

刘强东婚前财产

MySQL 5.5.8 源代码编译安装....

闪克

MySQL 5.5.8 源代码编译安装....

海全老年ag代步车多钱

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux....

澳门赌场帽子

MySQL 5.5.8 源代码编译安装....

相关资讯
玖玖彩票娱乐平台

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux....

宝马会网址多少年了

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux....

亳州真人

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux....

摩卡兰

/*安装CMake*//*进入CMake源代码所在目录*/cd #/*解压CMake源代码*/tar zxf cmake-2.8.3.tar.gz

/*进入CMake源代码目录*/cd cmake-2.8.3/*配置安装参数*/./configure --prefix=/usr/local/cmake/*编译*/gmake/*安装*/make install/*设置软连接*/ln -s /usr/local/cmake/bin/cmake /usr/bin

##################################################

/*创建用户组*/groupadd mysql/*创建用户并加入用户组,并取消永不的sbin权限*/useradd -g mysql -s"/sbin/nologin" mysql

/*进入root目录[源文件所在目录]*/cd #/*解压mysql源代码*/tar zxf mysql-5.5.8.tar.gz

/*进入解压后的MYSQL源代码目录*/cd mysql-5.5.8/*用cmake配置编译选项*/cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/home/mysql -DSYSCONFDIR=/etc -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_FEDERATED_STORAGE_ENGINE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DMYSQL_UNIX_ADDR=/tmp/mysqld.sock -DENABLED_LOCAL_INFILE=1 -DEXTRA_CHARSETS=all -DMYSQL_USER=mysql/*开始编译*/gmake/*安装mysql到配置的目录*/make install

/*进入mysql安装目录下的脚本目录*/cd /usr/local/mysql/scripts/*安装mysql默认数据库*/./mysql_install_db --basedir=/usr/local/mysql --datadir=/home/mysql --user=mysql

/*进入mysql安装目录下的支持文件目录*/cd /usr/local/mysql/support-files/*复制mysql配置文件*/cp my-medium.cnf /etc/my.cnf

/*复制服务文件并修改*/cp mysql.server mysqldvi mysqld/*修改:basedir=/usr/local/mysqldatadir=/home/mysql完成后按ESC键然后输入:wq*/mv mysqld /etc/init.d/mysqld

/*启动服务*/service mysqld start

/*添加服务到自启动项*/chkconfig --level 3 mysqld on

/*设置软连接*/ln -s /usr/local/mysql/bin/mysql /usr/binln -s /usr/local/mysql/bin/mysqldump /usr/binln -s /usr/local/mysql/bin/mysqladmin /usr/bin

/*设置mysql的默认字符集*/

vi /etc/my.cnf/*在[mysql配置节里面加入]*/DEFAULT-CHARACTER-SET=UTF8

/*在[mysqld配置节里面加入]*/CHARACTER-SET-SERVER=UTF8

linux....

热门资讯