Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

django mysqlclient connection string

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': '', #Database Name
        'USER': '', #Username
        'PASSWORD': '', #Password
        'HOST': '', #server url / IP
        'PORT': '3306',
        'OPTIONS': {
            'init_command': "SET sql_mode='STRICT_TRANS_TABLES'"
        }}}
 
PREVIOUS NEXT
Tagged: #django #mysqlclient #connection #string
ADD COMMENT
Topic
Name
6+4 =