How can I connect to database using Python?

I’m trying to connect my python script to the database for bulk Wordpress post entry from CSV but I’m unable to ping database URL

How can I solve this?

The host and IP might be different. Check out this guide here that might help you

1 Like

thanks for the reply Michael, I managed to do so very easily. It was an issue with the SQL port.