Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7677965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:32:19+00:00 2026-05-31T17:32:19+00:00

I have shared hosting on CentOS with local MySQL database. I’m able to run

  • 0

I have shared hosting on CentOS with local MySQL database. I’m able to run a simple Python scripts in cgi-bin folder, but I can’t make connection to MySQL database. After some google-ing, I found that I need to install some modules or something.. Is there any other way without additional installing, because I don’t have admin permissions on the VPS to do that.
I have only ftp and Control Panel access to the hosting.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T17:32:20+00:00Added an answer on May 31, 2026 at 5:32 pm

    Traditonally, people use the MySQKDB module to acess MySQL from Python. It is possible to build and configure the MySQLDB module for your userif you have acess to the shell and at least GCC instaled there. – just download the tarball, adjust your “prefix” dir for one you have write permissions too, and build it.

    Alternatively, tehr eis PyMYSQL (here:
    https://github.com/petehunt/PyMySQL ) Wwhich is a pure Python module – you shoul dbe able to have it loaded in a directoryyou have access to, and set the Pythonpath environment variable so thta it can be found by your script.

    And for last: CGI scripts are rather “20th century” internet – if you want to develop a Python web application or site, I seriously recommend you to move to a provider where you have shell acess, preferably a VPS, and do your project in a modern framework such as django or web2py – you willb e reinventing the wheel several times over developing using CGI, and its performance is as bad as it can be, since it will runa separate instance of the Python interpreter for each incoming http request.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a shared hosting where I have my website and MySQL database. I've
I have shared hosting, and within my own user space I run three different
I have an account with the shared hosting, IXwebhosting, will I be able to
I have MySQL on shared hosting. Is there any way how to change value
I have a shared hosting mySql instance which has it's system_time_zone set to Pacific
I have a windows shared hosting and i need to run some scheduled c#
I am on shared hosting and have cPanel , Apache, and PHP is run
I have two shared hosting accounts, each with a database of its own (its
I have a SQL Server 2005 database hosted on a shared hosting environment. Unfortunately
I have a site running in a Windows shared hosting environment. In their control

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.