Install and deploy Django based on Ubuntu Server 16.04 lts version (iv): install MySQL Database

Source: Internet
Author: User

1. Install MySQL and plugins:

sudo apt-get install mysql-server mysql-clientsudo apt-get Install Libmysqld-dev

sudo apt-get install Python-dev

In this process he will prompt you to enter the root password and confirm the password.

Install the python and MySQL connection plugin

Mysqlclient

2. Configure MySQL remote access permission (user name password self-modification)

GRANT all privileges on * * to ' user name ' @ '% ' identified by ' password ' with GRANT OPTION; FLUSH  privileges; (Configuration takes effect immediately)

3. Configuration files

At this time we still can not remotely connect MySQL, the following also have to modify the file;

Vi/etc/mysql/mysql.conf.d/mysql.conf

Modify the IP address in bind-address = 127.0.0.1 to 0.0.0.0

Restart MySQL

Service MySQL Restart

This completes the installation of MySQL.

Install and deploy Django based on Ubuntu Server 16.04 lts version (iv): install MySQL Database

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.