2.5Django how to connect MySQL database

1. Locate setting.py. File

 

 2. This is the number of the corresponding configuration, to find

 

 The red box shown above into the inside of FIG. among them:

name is the name of your database;

user is your user name;

password is your password;

host is the host name or IP address;

Your port is the port number, default 3306;

Guess you like

Origin www.cnblogs.com/y862621115/p/12286582.html