problem description
 python mysql is all installed successfully. The framework uses django, to connect to mysql with the error of 
  
 
 all the time. 
 now mysql is running normally. If I delete the code in the database part of django, the program will run normally. Visit 127.0.0.1mysql 8080 in the browser 
sources of topics and their own ideas
I checked the relevant information and showed that the database could not be connected because the database was not open, but mine is always open. What I understand is that the database connection is wrong, but the host and port of the mysql I configured are correct.
related codes
DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.mysql",
        "NAME": "test",
        "USER": "root",
        "PASSWORD": "password",
        "HOST": "127.0.0.1",
        "PORT": "3307",
    },
}does any god know what"s going on? How to solve it?
