MySQL installation under CentOS

Source: Internet
Author: User

First, check the environment

# Toggle Root Permissions

Su Root

# check if MySQL rpm-qa|grep mysql # has been installed remove all MySQL yum-y remove mysql*

1. Upload files to software directory, unzip and modify the folder name to MySQL

2. Create user and user groups and assign user group permissions to MySQL folder

2.1 See if there are MySQL users and user groups

cat/etc/passwd

Cat/etc/group

2.2 Adding a user group

Groupadd MySQL

Useradd-r-G MySQL MySQL

2.3 Assigning permissions to user groups

3. Run mysql_install_db script, initialize MySQL data directory and grant table

scripts/mysql_install_db--user=mysql

MySQL installation under CentOS

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.