MySQL binary installation deployment

Source: Internet
Author: User

1 #使用二进制包安装mysql2CP mysql-5.6. in-LINUX-GLIBC2.5-x86_64.tar.gz/data/3tar-xf/data/mysql-5.6. in-LINUX-GLIBC2.5-x86_64.tar.gz-c/data/4mv/data/mysql-5.6. in-LINUX-GLIBC2.5-x86_64/data/MySQL5 
6 #创建mysql数据存储目录7mkdir/data/Mysqldata8 
9 #添加mysql用户和mysql组TenGroupadd-R MySQL OneUseradd-g Mysql-r-s/sbin/nologin-m-d/data/mysqldata MySQL AChown-r mysql:mysql/data/Mysqldata - 
 - #初始化数据 theCd/data/mysql &&/scripts/mysql_install_db--datadir=/data/mysqldata--user=MySQL - #创建配置文件, the contents of the configuration file are as follows - #[mysqld] -#basedir =/data/MySQL +#datadir =/data/Mysqldata -#port =3306
 +#socket =/tmp/Mysql.sock A#user =MySQL at#innodb_file_per_table = on -#skip_name_resolve = on -#symbolic-links=0
 - #[mysqld_safe] -#log-error=/data/mysql/Mysqld.log -#pid-file=/data/mysql/Mysqld.pid in 
 - #复制启动文件 tocp/data/mysql/support-files/mysql.server/etc/init.d/mysqld +chmod777/etc/init.d/mysqld - 
 the#修改/etc/init.d/mysqld content, the content is as follows: *#basedir =/data/MySQL $#datadir =/data/MysqldataPanax Notoginseng 
 - #加入系统库核系统变量 theln-sv/data/mysql/include/usr/include/MySQL +Echo'/data/mysql/lib'>/etc/ld.so.conf.d/mysql.conf A Ldconfig theEcho'export path=/data/mysql/bin/: $PATH'>/etc/profile.d/mysql.sh +source/etc/ Profile - 
 $ #启动数据库服务 $Service mysqld Start

MySQL binary installation deployment

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.