Binary installation MySQL method--5.5.32 version

Source: Internet
Author: User

Binary installation MySQL method--5.5.32 version


Mysql-5.5.32-linux2.6-x86_64.tar.gz

Link: http://pan.baidu.com/s/1dIIU6 Password: bv61

1. Extracting binary files

Tar XF mysql-5.5.32-linux2.6-x86_64.tar.gz


2, copy to the specified installation directory

Cp-r Mysql-5.5.32-linux2.6-x86_64/application/mysql


3, enter the program running directory to create a database storage directory

Cd/application/mysql/mkdir/application/mysql/data


4. Initial Installation

./scripts/mysql_install_db--user=mysql--basedir=/application/mysql--datadir=/application/mysql/data


5. Copy the MySQL server execution program to/etc/init.d/, so that the MYSQLD service can run directly

CP Support-files/mysql.server/etc/init.d/mysqld


6. Copy the configuration file to/etc/below

CP SUPPORT-FILES/MY-SMALL.CNF/ETC/MY.CNF


7. Operation Service

/etc/init.d/mysqld start


8. Stop the Service

/etc/init.d/mysqld restart


9. Running MySQL in bash

Msyql

If the error indicates no commod does not have this command, there is no such environment variables in profile, two methods, one is to add the installation path to the environment variable, another,

cp/application/mysql/bin/*/usr/local/sbin/

Can be copied to a path that is already an environment variable

Vim/etc/profilepath=/application/mysql/bin: $PATHsource/etc/profile



This article is from "Perseverance until success" blog, please be sure to keep this source http://327101303.blog.51cto.com/212957/1617378

Binary installation MySQL method--5.5.32 version

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.