How to install MySQL database

Source: Internet
Author: User

Introduction: MySQL databaseThere are a lot of applications in today's society. Not everyone will install MySQL databases. This article will introduce you to the installation of MySQL databases.

1. Download mysql -XXX.tar.gz first

2. Unzip the tar zxvf mysql-3.22.32.tar.gz

3. cd mysql-3.22.32

4. The installation directory is not fixed:./configure -- prefix =/your path/mysql

5. make

6. make install

7. cd scripts

8 ../mysql_install_db

9. cd/usr/local/mysql/share/mysql/

10. chmod 611 mysql. server

11. cp/usr/local/mysql/scripts/mysql. server/usr/local/mysql/bin

12./mysql. server start

13. Use Kwrite to open the/etc/rc. d/rc. local file and add the following lines to automatically execute MySQL during startup.

/Usr/local/mysql/share/mysql. server start

There are many installation methods for MySQL databases. Here we will introduce this method to you. What I will introduce is not omnipotent. If you have any good comments, you are always welcome to share with me.

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.