Home > Database > Mysql Tutorial > RedHat Linux 9.0上MySQL源码安装方法

RedHat Linux 9.0上MySQL源码安装方法

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:57:09
Original
1205 people have browsed it

平台:RedHat Linux 9.0MySQL版本:MySQL 5.0.4MySQL源码安装步骤:#groupadd mysql#useradd -g mysql mysql#tar zxvf mysql-5.0

平台:RedHat Linux 9.0
MySQL版本:MySQL 5.0.4

MySQL源码安装步骤:

#groupadd mysql
#useradd -g mysql mysql
#tar zxvf mysql-5.0.41.tar.gz
#cd mysql-5.0.41
#./configure --prefix=/usr/local/mysql --enable-thread-safe-client --enable-local-infile --with-charset=gbk --with-extra-charset=ascii,armscii8,big5,cp1250,cp1251,cp1256,cp1257,cp850,gb2312,geostd8,latin1,latin2,latin5,latin7,utf8 --with-low-memory
#make
#make install
#cp support-files/my-medium.cnf /etc/my.cnf
#cd /usr/local/mysql
#chown -R mysql .
#chgrp -R mysql .
#bin/mysql_install_db --user=mysql
#chown -R root .
#chown -R mysql var
#bin/mysqld_safe --user=mysql &
#cd /usr/local/src/mysql-5.0.41
#cp support/mysql.server /etc/rc.d/init.d/mysqld
#chmod 700 /etc/rc.d/init.d/mysqld
#chkconfig --add mysqld
#chkconfig --level 345 mysqld on

#/usr/local/mysql/bin/mysql

测试
#/usr/local/mysql/bin/mysqladmin ping
#/usr/local/mysql/bin/mysqladmin version
#/usr/local/mysql/bin/mysql

添加root密码
#/usr/local/mysql/bin/mysqladmin -u root -p

linux

Related labels:
source:php.cn
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