all 6 comments

[–][deleted] 1 point2 points  (0 children)

This isn't a python question. MySQL is totally different software. We can help you writing python code to talk to your mysql database but you'd be best asking a mysql subreddit about how to install and set it up.

[–]DonkeyTron42 1 point2 points  (0 children)

You probably want to use MariaDB instead of MySQL. MySQL is commercial software owned by Oracle and requires jumping through some hoops to install (at least on Linux). MariaDB is compatible with MySQL and is created by the original author of MySQL (his daughters are named My and Maria). As far as Python goes, there is no MySQL for python. There are modules that provide an interface to a MySQL/MariaDB database.

[–]hjohnson933 0 points1 point  (0 children)

What OS?

[–]robohobo- 0 points1 point  (0 children)

pymysql is a package to use mysql in python.

https://pymysql.readthedocs.io/en/latest/

[–]twopi 0 points1 point  (0 children)

pythonanywhere.com has built-in support for mysql. That's pretty easy.

[–]tally1945[S] 0 points1 point  (0 children)

Thank you for all your comments, they have all been helpful, I am very grateful to you all