Installing and configuring MySQL in VMware virtual machine Ubuntu14.04

Source: Internet
Author: User
Tags mysql in administrator password

Update Source list

The shortcut key "Ctrl+alt+t" opens "Terminal terminal Window", enter "sudo apt-get update" and "Enter the root user's password"--return, you can.

As shown:

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.

As shown:

Install MySQL

Input "sudo apt-get install mysql-server mysql-client"-Enter

Wait until "Do you want to continue", enter "Y"--and return

Enter the database MySQL root "root" user's password (Administrator password) in the "Package Configuration" dialog box and return

Confirm password in the re-enter password once, enter, the installation is complete.

After the installation is complete, use the command "sudo service mysql restart" To verify that the installation is successful and the following output is successful

---------------------------------------------------------------------------Split Line------------------------------------------- ---------------------------

Let Apache support MySQL

First enter "sudo stop MySQL" to stop MySQL running, and then

Enter "sudo apt-get install Libapache2-mod-auth-mysql"-----the installation is successful and Apache will support MySQL after installing this module.

--------------------------------------------------------------------------------------------------------------- ---------------------------------------------

Some simple management of MySQL:

Start MySQL service: sudo start MySQL

Stop MySQL service: sudo stop MySQL

Modify the administrator password for MySQL: sudo mysqladmin-u root password newpassword

Set up remote access (normally, the 3306 port that MySQL occupies is only listening on IP 127.0.0.1, denying access to other IPs (Netstat can see it). Cancel the local supervisor

Listen to the need to modify the My.cnf file:):

sudo vi/etc/mysql/my.cnf

Bind-address = 127.0.0.1//Find this content and comment

MySQL post-installation directory structure analysis (this structure is only for use of Apt-get Install on-line installation):

Database storage directory:/var/lib/mysql/

Related configuration file directory:/usr/share/mysql

Related Command Storage directory:/usr/bin (mysqladmin mysqldump, etc.)

Startup footstep Storage directory:/etc/rc.d/init.d/

Installing and configuring MySQL in VMware virtual machine Ubuntu14.04

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.