Under Ubuntu 14.04 mysql install configuration tutorial _mssql

Source: Internet
Author: User
Tags mysql in

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

Method/Step

1, update the source list

Open "Terminal Window", enter "sudo apt-get update"--> carriage return--> "Enter root password"--> carriage return is OK. If you do not run this command and install MySQL directly, you will receive a "few packages that cannot be downloaded and you can run the Apt-get update------" error message, causing the installation to fail.

2, install MySQL

Open the Terminal window, enter sudo apt-get install mysql-server mysql-client--> return--> enter "y"--> carriage return--> enter MySQL in the Package Setup dialog box " Root "user's password--> carriage return--> again the password--> carriage return, installs completes.

3, how to determine whether MySQL installed successfully

Open "Terminal Window", enter "sudo service mysql restart"--> carriage return--> If MySQL starts successfully, running state indicates that the MySQL installation was successful.

4, let Apache support MySQL

Open the Terminal window, enter the "sudo apt-get install libapache2-mod-auth-mysql"--> carriage return--> installation was successful, after the installation of the module, Apache can support MySQL.

5, let PHP support MySQL

Open the Terminal window, enter the "sudo apt-get install php5-mysql"--> carriage return--> installation was successful, after installing this module, PHP can support MySQL.

6, login MySQL

Open "Terminal Window", enter "Mysql-u root-p"--> carriage return--> Enter the password of "root" user in MySQL--> return--> login succeeded.

Add a little ubuntu14.04 how to uninstall MySQL?

1, delete the MySQL data file
sudo rm/var/lib/mysql/-R
2, delete the Mqsql profile:
sudo rm/etc/mysql/-R
3, automatically uninstall the MySQL program:
sudo apt-get autoremove mysql*--purge
sudo apt-get remove AppArmor

Wonderful topic sharing: MySQL different versions of the installation Tutorials mysql5.7 version Installation Tutorials

The above is the detailed steps for installing and configuring MySQL on Ubuntu 14.04, do you like it?

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.