Hey all,
Is it possible (and how) to read and write from the Xamp Apache database with python code?
If not, is there a nice way to use another database or do I need to use a text file?
Thanks. ^^
Hey all,
Is it possible (and how) to read and write from the Xamp Apache database with python code?
If not, is there a nice way to use another database or do I need to use a text file?
Thanks. ^^
Do you mean XAMPP? If xesm then ofcourse it is, you are talking about mySQL database, it is very simple to do it from python.
Other alternative (favored for smaller games is SQLite).
Difference between mySQL and SQLite is that you need to have running mysql server to work with mysql database, while with SQLite you dont need to do so.
I highly reccomend you to use SQLite, as it is much easier to deploy.
I think that modules for manipulating are sqlite3 and pysqlite, you can google about python+sqlite.
And also, please do read some tutorials on databases first to get some general knowledge what database is and how to best use it.
I’m learning about databases on school as I type this message lol.
We use Mysql here so I think I’m gonna go with that one.
Thanks a lot! ^^