My db wont connect with railway when I deploy. Works fine on my local computer. Here is the error message:
pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on '0.0.0.0' ([Errno 111] Connection refused)")
10.10.10.6 - - [09/Jan/2023 23:54:12] "POST /login HTTP/1.1" 500 -
Here is my code:
connection = pymysql.connect(host = '0.0.0.0',
user = 'root',
password = 'root',
db = db,
charset = 'utf8mb4',
cursorclass = pymysql.cursors.DictCursor,
autocommit = True)
Would appreciate some help!