How do I install MYSQL library for Ren'py?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
User avatar
zankizuna
Veteran
Posts: 416
Joined: Fri May 04, 2012 2:20 am
Completed: Monochrome Valentine
Projects: Softwar
Deviantart: raseru09
itch: ZanKizuna
Location: Manilaaaaaaaa
Contact:

How do I install MYSQL library for Ren'py?

#1 Post by zankizuna »

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 :P but I know and have faith that it's possible.

User avatar
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?

#2 Post by PyTom »

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.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
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?

#3 Post by zankizuna »

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...

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Andredron, Bing [Bot], Imperf3kt