How can I connect to database using Python?

Hi.
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 127.0.0.1:15200.

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.

2 Likes