Linux Learning note MySQL Installation summary

Source: Internet
Author: User

1 Mounting method

Download 2 banned source installation package

Mysql-5.5.27-linux2.6-i686.tar.gz

Remark: 2 The injunction package can be used directly after decompression without make

2 steps

Shell>groupadd MySQL

shell>useradd-d/home/mysql-m mysql-g MySQL

Shell>cd/usr/local

Shell>mkdir MySQL

Shell>cp/mnt/hgfs/exchange \data/mysql_linux/mysql-5.5.27-linux2.6-i686.tar.gz

/usr/etc/dev/mysql

SHELL>CD MySQL

Shell>tar xzvf/usr/etc/dev/mysql/mysql-5.5.27-linux2.6-i686.tar.gz

SHELL>MV mysql-5.5.27-linux2.6-i686/*.

shell>scripts/mysql-install_db--usr=mysql>note.txt&

Shell>cp/usr/etc/dev/mysql/mysql/support-files/mysql.server/etc/rc.d/init.d/mysqld

Shell>chown-r Root

Shell>chown-r MySQL Data

Shell>chown-r MySQL.

SHELL>CD bin

Shell>./mysql

3 Key files

MYSQL binary source installation file location

/mnt/hgfs/exchange \data/mysql_linux/mysql-5.5.27-linux2.6-i686.tar.gz

MySQL Installation location

#whereis MySQL

/usr/local/mysql

MYSQL configuration file/etc/my.cnf

MySQL Startup script location/etc/rc.d/init.d/mysqld

MySQL Boot mode mode:

1> #cd/usr/local/mysql/bin

#./mysql-uroot-p

#Enter Password

Way

2/etc/rc.d/init.d/mysqld restart

Linux Learning note MySQL Installation summary

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.