installing MySQL Software

Source: Internet
Author: User

Install MySQL software (green version)

① Unpacking Packages

② Change the folder name to MySQL and copy it to the/usr/local folder

③ use the CD command to enter the/usr/local/mysql folder and use Ls–l to view

After viewing it, the file owner and the group that owns the file are shown 8972, what is it?

A: Since the developer is packaging MySQL, the system automatically saves the file owner and the owning group, if the owner and the owning group are not found in the current Linux operating system, it automatically displays 8972.

④mysql installation Detailed steps

First step: Groupadd MySQL, add MySQL Group

Step two: Useradd???? -G???? MySQL (group name) MySQL (user name), create MySQL user and assign to MySQL group

Step three: Initialize the base table of the database

Initializing a data table with the scripts/mysql_install_db--user=mysql directive

The post-run effect is as follows:

Fourth step: Chown???? -R???? Root. (I'm a dot), change all file owners in the current directory to root

Fifth step: chown-r mysql data, change the owner of the data folder to MySQL

Sixth step: Chgrp???? -R???? Mysql????. (I'm a dot), change the file's owning group to MySQL

Seventh Step: Bin/mysqld_safe--user=mysql & (running in the background), start MySQL database

⑤ using Bin/mysql–uroot to start MySQL software

⑥ password for MySQL (easy to follow PHP connection)

installing MySQL Software

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.