CentOS 6.5 Installation mysql5.5.28

Source: Internet
Author: User

1,useradd-s/sbin/nologin MySQL
2,mkdir-p/data/mysql/data
3,chown-r Mysql:mysql/data/mysql
4,yum install gcc gcc-c++ cmake ncurses-devel Bison
5,wget http://ncu.dl.sourceforge.net/project/mysql.mirror/MySQL%205.5.28/mysql-5.5.28.tar.gz
6,tar XZVF mysql-5.5.28.tar.gz
7,CD mysql-5.5.28
Equivalent to the previous./configure
8,cmake-dmysql_user=mysql-dcmake_install_prefix=/usr/local/mysql-dinstall_datadir=/data/mysql/data-dmysql_unix _addr=/tmp/mysqld.sock-ddefault_charset=utf8-ddefault_collation=utf8_general_ci-dextra_charsets=all-dwith_ Embedded_server=1-denabled_local_infile=1-dwith_myisam_storage_engine=1-dwith_innobase_storage_engine=1
9,make && make Install
10,chown-r mysql:mysql/usr/local/mysql/
11,mv/root/mysql-5.5.28/support-files/my-large.cnf/etc/my.cnf
12,mv/root/mysql-5.5.28/support-files/mysql.server/etc/init.d/mysqld
13,chmod A+x/etc/init.d/mysqld
14,chkconfig--level 345 mysqld on
15,echo "Export path=/usr/local/mysql/bin/: $PATH" >>/etc/profile
16,source/etc/profile
17,/usr/local/mysql/scripts/mysql_install_db--user=mysql--defaults-file=/etc/my.cnf--basedir=/usr/local/ mysql5.5--datadir=/data/mysql/data
18,vim/etc/my.cnf
19, add at [mysqld]
Basedir=/usr/local/mysql
Datadir=/data/mysql/data
20,service mysqld Start
21,/usr/local/mysql/bin/mysqladmin-u root password ' 123 '
22,mysql-u root-p123

Division line = = = = =

MySQL implements remote link your paaaword for your password root for your account% does not restrict connected IP

Mysql>grant all privileges on * * to [e-mail protected] '% ' identified by ' your Paaaword ';

Mysql>grant all on * * to [e-mail protected]% identified by ' your Paaaword ';

MySQL Installation RELATED links
Http://blog.chinaunix.net/uid-26931379-id-3193926.html

CentOS 6.5 Installation mysql5.5.28

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.