MySQL Source installation

Source: Internet
Author: User
Tags curl openssl openldap

Yum install-y  gcc gcc-c++ autoconf libjpeg libjpeg-devel perl perl-cpan libpng libpng-devel FreeType freetype-devel L IBXML2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel Curl Curl -devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel OpenSSL openssl-devel openldap openldap-devel nss_ld AP openldap-clients openldap-servers png jpeg autoconf cmake make ladp ldap* ncurses ncurses-devel zlib   zlib-deve L  pcre pcre-devel  OpenSSL openssl-devel perl libtoolt openldap-devel libxml2-devel  ntpdate cmake gd* GD2 Jpeg  

Mysql-5.5.20.tar.gz:http://pan.baidu.com/s/1cdqz8m

Cd/alidata/serverrm-rf/alidata/server/mysql-5.5.20/killall mysqld &>/dev/nullyum Remove mysql-y &>/ Dev/nulluseradd-s/sbin/nologin-m MySQL &>/dev/nullif [-d/alidata/server/mysql]then RM-RF/   Alidata/server/mysql rm-rf/alidata/server/mysql-5.5.20 &>/dev/nullfitar-zxf mysql-5.5.20.tar.gz -c/alidata/server/cd/alidata/server/mysql-5.5.20cmake-dcmake_install_prefix=/alidata/server/mysql-ddefault_ Charset=utf8-ddefault_collation=utf8_general_ci-dwith_extra_charsets:string=all-dwith_innobase_storage_engine= 1-dwith_readline=1-denabled_local_infile=1-dmysql_user=mysql-dmysql_tcp_port=3306make && make INSTALLCP- RF SUPPORT-FILES/MY-MEDIUM.CNF/ETC/MY.CNFCP-RF Support-files/mysql.server/etc/init.d/mysqldchmod 755/etc/init.d/ Mysqldchmod +w/alidata/server/mysql chown-r mysql:mysql/alidata/server/mysql cd/alidata/server/mysqlbash scripts/ mysql_install_db--user=mysql--basedir=/alidata/server/mysql &Amp;>/dev/nullchkconfig mysqld Onchkconfig--list | grep mysqld/etc/init.d/mysqld start &>/dev/nullpgrep mysqldif [$ = = 0]then echo "mysql boot successful" echo " MySQL installation success!!! "Else echo" MySQL startup Failed "fi

# vi/etc/profilemysqlpath=/alidata/server/mysql/binpath= $PATH: $MYSQLPATHexport path# source/etc/profile

MySQL Source installation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.