Skip to content

Python Database that stays with the program

So mysql works great when you log into your mysql database program on that device but what if you want to move the program to another device, the connected databases wont work…

Is there anyway to have the database somehow within the python file, so that when I move it to other devices it will act the same…Thank you!


Assuming you want to store some simple information, Sqlite3 does exact what you’re looking for. This is a sql database that is entirely run on a file on the hardrive that the application is running from.

But be careful what you put in this database. This is not meant to be a high performance database, and will crumble if you stress it too much.