Hi
There is a small project that recieves get requests from browser.
Then it makes select request to postgresql database end replies. It works fine.
I try to modify project to work with MYSQL database on another server (both databases are equally structured).
I changed database section in settings.py file :
#Before:
DATABASES = {
‘default’: {
‘ENGINE’: ‘django.db.backends.postgresql’,
‘NAME’: ‘mydb’,
‘USER’: ‘root’,
‘PASSWORD’: ‘Password123’,
‘HOST’: ‘fghimgfo.amazonaws.com’,
‘PORT’: ‘3306’,
}
}
#After:
DATABASES = {
‘default’: {
‘ENGINE’: ‘django.db.backends.mysql’,
‘NAME’: ‘mydb’,
‘USER’: ‘root’,
‘PASSWORD’: ‘Password123’,
‘HOST’: ‘1.2.3.4’,
‘PORT’: ‘3306’,
}
}
… but it doesn’t work
It seems to me it is not enough…
Could you please explain what I do wrong