Installation and configuration of Ubuntu 14.04 database server--mysql

Source: Internet
Author: User

MySQL is an open-source relational database management system of Oracle Company, which is widely used in small and medium-sized websites, is a cross-platform database management system, now describes how to install and configure MySQL on Ubuntu 14.04

1. Update the 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 determine if MySQL installation is successful

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.

Precautions

Be sure to remember the root user password that was set when you installed MySQL, and the root user of the Ubuntu 14.04 system is not the same user as the root user in MySQL.

Installation and configuration of Ubuntu 14.04 database server--mysql

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.