Skip to content

Setup the own server DB. #20

Answered by SWS-5007
SWS-5007 asked this question in Q&A
Jan 11, 2023 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

Hi, I am getting (2013, 'Lost connection to MySQL server during query') error yet when I run the alembic upgrade head command.

This means, It can't connect to MySQL Database which I gave for DB_CONNECTION env with db_name, db_pwd and db_url?

Here is my codebase of local_settings.py of havester.

DB_CONNECTION = "mysql+pymysql://shearscan_root:6kkgyRfrdLy=@81.181.255.414:3306/shearscan_db?charset=utf8mb4"
SUBSTRATE_RPC_URL = "wss://www.shear.com/"

INSTALLED_ETL_DATABASES = []

And I created the Database called shearscan_db on Cpanel.

And also db_name and db_pwd is fitted.
My Cpanel url is 81.181.255.414.

What is wrong in my env configuration?
Please.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@SWS-5007
Comment options

@SWS-5007
Comment options

@arjanz
Comment options

@arjanz
Comment options

Comment options

You must be logged in to vote
1 reply
@SWS-5007
Comment options

Answer selected by SWS-5007
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #18 on January 12, 2023 10:38.