I've set up an apache web server kind of thing, phpmyadmin with Xampp.
I need to be able to use MySQL codes in my game, but I have no idea how to get the "import MySQL" code to work.
where do I place the package? I also do not know how to make it work on python either but I know and have faith that it's possible.
How do I install MYSQL library for Ren'py?
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- PyTom
- Ren'Py Creator
- Posts: 16093
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: How do I install MYSQL library for Ren'py?
Um... you don't? Letting people connect to a mysql instance from your game is the mother of all security risks.
What would work better is to have a webservice that your game connects to, one that stores data into mysql. That would run entirely on your web serve, with only urllib2 being used by Ren'Py.
What would work better is to have a webservice that your game connects to, one that stores data into mysql. That would run entirely on your web serve, with only urllib2 being used by Ren'Py.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- zankizuna
- Veteran
- Posts: 416
- Joined: Fri May 04, 2012 2:20 am
- Completed: Monochrome Valentine
- Projects: Softwar
- Deviantart: raseru09
- itch: ZanKizuna
- Location: Manilaaaaaaaa
- Contact:
Re: How do I install MYSQL library for Ren'py?
ok. so I was warned to use urllib2 already before.
I just need to finally study it... I wish it'll be easy. It needs php and mysql codes, right?
I'm not really proficient with web stuff...
I just need to finally study it... I wish it'll be easy. It needs php and mysql codes, right?
I'm not really proficient with web stuff...
Who is online
Users browsing this forum: Ahrefs [Bot], Andredron, Bing [Bot], Imperf3kt