Bug #100604 OperationalError (2002,"can't connect to MYSQL Server

Submitted: 21 Aug 2020 13:33 Modified: 29 Jun 2021 12:01
Reporter: Ritu Mishra Email Updates:
Status: Not a Bug Impact on me:
None 
Category:Connector / Python Severity:S1 (Critical)
Version: OS:Windows
Assigned to: CPU Architecture:Any
Tags: cloudcluster, Django, djangodatabase

[21 Aug 2020 13:33] Ritu Mishra
Description:
django.db.utils.operationalerror:2002 through host -cloudcluster
Tried connecting my django application to my server 
its giving error- 
Exception has occoured: OperationalError (2002,"can't connect to MYSQL Server on'mysql-1111-0.cloudclusters.net'(10060)")

my database in settings.py is 
```
import django.contrib.gis.db.backends.mysql
import django.db.backends.mysql
import django.db.backends.mysql.client

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME':'database1',
        'USER':'user',
        'PASSWORD':'******',
        'HOST':'mysql-11111-0.cloudclusters.net',
        'Port':'11111',
    }
}
```
on migrating getting the above Error.Kindly help.
 

How to repeat:
Run and migrate or debug to get the same error
[29 Jun 2021 12:01] MySQL Verification Team
We're sorry, but the bug system is not the appropriate forum for asking help on using MySQL products. Your problem is not the result of a bug.

For details on getting support for MySQL products see http://www.mysql.com/support/
You can also check our forums (free) at http://forums.mysql.com/

Thank you for your interest in MySQL.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.049 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.