phpmyadmin database with django/python

by: jshivam, 8 years ago


Hi! So I have a website created from scratch using a database I set up on phpmyadmin through dreamhost. I want to shift this over to a python/django framework to be able to implement some other work with my website. I can't seem to figure out how to actually connect with the database though...

I originally tried using my engine as 'django.db.backends.mysql' and entering in the rest of the credentials (that didn't work) so then I also tried mysql.connector.django, which also didn't seem to work for me....

If there is a way to do so, can you try helping me connect to my database in phpmyadmin?



You must be logged in to post. Please login or register an account.



So phpmyadmin is just a GUI layer on top of MySQL from what I understand and have personally dealt with.
What isn't working? No connection? Invalid credentials? ...etc. Depends what's going wrong here.

In most cases, you login with the same mysql user and pass, and you're good to go. Apparently the only other db type that is even supported by phpmyadmin is "mariadb," but I've never heard of that til I just looked to see if it was only mysql.

-Harrison 8 years ago

You must be logged in to post. Please login or register an account.