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

  • SEARCH
  • Home
  • 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 8827703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:26:06+00:00 2026-06-14T07:26:06+00:00

I’m pretty sure I followed the procedures for this tutorial accurately but I’m still

  • 0

I’m pretty sure I followed the procedures for this tutorial accurately but I’m still getting errors =/

Currently, my settings.py DATABASES looks like this

DATABASES = {
    'default': {
        'ENGINE': 'mysql',  # Add 'postgresql_psycopg2', 'mysql','sqlite3' or 'oracle'.      
        'NAME': 'mydb',     # Or path to database file if using sqlite3.
        'USER': 'user',     # Not used with sqlite3.
        'PASSWORD': 'pwd',  # Not used with sqlite3.
        'HOST': '',         # Set to empty string for localhost. Not used with sqlite3.
        'PORT': '',         # Set to empty string for default. Not used with sqlite3.
    }
}

The tutorial tells me to have ‘mysql’ in ENGINE. However when I try to use the command ‘python manage.py shell’ I get this error

django.core.exceptions.ImproperlyConfigured: 'mysql' isn't an available database backend.
Try using django.db.backends.mysql instead.
Error was: No module named mysql.base

This is why I have django.db.backends.mysql next to ENGINE.

After these settings, the tutorial tells me to type in these commands

'python manage.py shell'     <--- works fine

from django.db import connection      <--- works fine

cursor = connection.cursor()          <--- uh oh

After running the cursor command, I get this error

http://pastebin.com/8MtYq7rg

Not really sure what this means =/

When I try to run my server with python manage.py runserver I get this error. Not sure what this means either but the last error seems to be the same.

http://pastebin.com/91U3dz73

Also I looked up online to use python manage.py dbshell to test my DB access and this is the message I get.

Error: You appear not to have the 'mysql' program installed or on your path.

I posted this problem on reddit to see if I could get any extra help. I hope some of this information provides extra help to this problem.

  1. Type MySQL in a shell and see the result
  2. Post how you installed MySQL. Did you make a table for Django to use already?
  3. What OS are you using?

    1. Nothing happens when I type in MySQL in shell. When I type in the command ‘python manage.py shell’ then MySQL. I get an error “NameError: name ‘MySQL’ is not defined”. When i type MySQL in terminal, it says MySQL: command not found

    2. How I installed MySQL was that I downloaded the file and then extracted where the tar file is located. Next I put the extracted folder into /home/Development directory. All my code is stored in /home/Development/djcode/mysite/mysite/

    3. I am using Ubuntu

******UPDATE*UPDATE***************

So I believe that I was getting my error due to the fact that I didn’t have MySQL installed/downloaded. What I had was MySQL-Python which isnt the same thing… But anyways, I downloaded/installed MySQL and ran python shell with ‘python manage.py shell’ then ‘from django.db import connection’ and then ‘cursor = connection.cursor()’

However, I get the following error

OperationalError: (1045, “Access denied for user ‘bradford’@’localhost’ (using password: YES)”)

Not sure what to do at this point =/

  • 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-06-14T07:26:08+00:00Added an answer on June 14, 2026 at 7:26 am

    I guess you are missing Python MySQLDB

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

Sidebar

Related Questions

I'm not entirely sure how I managed to jack this up. http://pretty-senshi.com If you
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
This could be a duplicate question, but I have no idea what search terms
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.

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.