Mysql Setup
setx mysql_config "C:\path\to\mysql_config"pip install mysqlclientpip install mysqlclient --global-option=build_ext --global-option="-I/path/to/mysql/include"DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'your_database_name',
'USER': 'your_mysql_username',
'PASSWORD': 'your_mysql_password',
'HOST': 'localhost', # Or the MySQL server's hostname
'PORT': '3306', # Or the port MySQL is listening on
}
}
Last updated