Ubuntu Server above--install and configure MySQL "Turn"

Source: Internet
Author: User

  1. Update Source list

    Open "Terminal Window", enter "sudo apt-get update"-and "enter the root user's password"--return, you can. If you do not run the command and install MySQL directly, a "few packages cannot be downloaded, you can run the Apt-get update------" error message, causing the installation to fail.

  2. Install MySQL

    Open terminal window, enter "sudo apt-get install mysql-server mysql-client"-Enter MySQL in the "Package Setup dialog box"--Enter "Y"--and return to " Root "user's password--Enter and lose the password again--Enter, the installation is complete.

  3. How to tell if MySQL is installed successfully

    Open "Terminal Window", enter "sudo service mysql restart"-and enter-if MySQL starts successfully, the running status instructions MySQL installation is successful.

  4. Let Apache support MySQL

    Open "Terminal Window", enter "sudo apt-get install Libapache2-mod-auth-mysql"----the installation is successful, Apache will support MySQL after installing this module.

  5. Let PHP support MySQL

    Open "Terminal Window", enter "sudo apt-get install Php5-mysql"----the installation is successful, PHP will support MySQL after installing this module.

  6. Log in to MySQL

    Open terminal window, enter "Mysql-u root-p" and enter the password for the "root" user in MySQL----and the login is successful.

    Forwarding Address: http://jingyan.baidu.com/article/425e69e6bbc6c7be14fc1640.html

Ubuntu Server above--install and configure MySQL "Turn"

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.