Linux Video Learning 6 (MySQL installation/)

Source: Internet
Author: User
Tags mysql in

Advantages of 1.mysql:

Free, cross-platform, light, multi-concurrency supported.

Installation steps for 2.mysql:

    1. Prepare the installation files and copy them to the home directory. Mount/mnt/cdrom
    2. CP mysql*/Home
    3. Unzip the installation file. TAR-ZXVF ***.tar.gz
    4. Groupadd MySQL (create a MySQL group).
    5. If so, remove the mysql.rpm package first. RPM-E--nodeps mysql.rpm
    6. useradd-g mysql MySQL (mysql user created under MySQL group)
    7. Go to the MySQL folder, execute scripts/mysql_install_db--user=mysql (Initialize database)
    8. Chown-r Root. (Change the owner of all files and folders in the current directory to root)
    9. Chown-r MySQL data (change the user creator of the Data folder to MySQL)
    10. Chgrp-r MySQL. (Change all files and folders in the current directory to the MySQL group)
    11. Start MySQL.
    12. /bin/mysqld_safe--user=mysql &. (Start MySQL with MySQL user)
    13. The MySQL port is 3306,netstat-anp check if MySQL is started.
    14. Mysql-u root-p: Use root user to enter MySQL
    15. The command to start MySQL in other directories is also required to modify the PATH variable under env: Root user is followed by ":/home/mysql/bin" after the path path in the./bash_profile.
    16. Dd

Linux Video Learning 6 (MySQL installation/)

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.