The connection URL to my MySQL server is like so
jdbc:mysql://server1:3306,server2:3306,server3:3306/mydb
After I parse and extract the hosts and ports, how can I pass it in Django DATABASES
section below?
DATABASES = {
'default': {
'ENGINE': 'mysql.connector.django',
'NAME': 'mydb',
'USER': 'user',
'PASSWORD': 'password',
'HOST': 'server1',
'PORT': '3306'
}
}