MZ Plugin to communicate with PHP/MYSQL?

hi,
can any one make plugin for mz or mv to communicate with mysql xampp database

and have commands to use simple insert update delete select qurieeys?
some of my tutorials vedios

I've moved this thread to Plugin Requests. Thank you.

Not to be that guy, but I'm having a hard time believing anyone will just go and make this for free. You may want to try posting a paid offer in the classifieds section.
Not to be that guy, but I'm having a hard time believing anyone will just go and make this for free. You may want to try posting a paid offer in the classifieds section.
I concur with that guy.
Before we start here, may I ask how deep your computer science knowledge is?

First, a desktop app can use a Node module (which is required) to connect to a database - a browser game, however, cannot. At least not without some extra steps that we will come to later.

Next, just because you can connect to a database directly from your game doesn't mean you want to do that. A bad guy can easily modify your queries and destroy your database without any effort. Your user/password would be publicly readable in your game, too.

I strongly encourage you to use a webserver (backend) somewhere. Here, you can create an API that offers all the methods that your game needs and not more. So, the bad guys can no longer do weird actions on your database. A web server will also enable browser games to connect to your database.

Netlify or some AWS could host your backend. Since your backend is on a server and hence not part of your game, we cannot just write a plugin for that.

After all, your backend will resolve some problems mentioned above but will not magically resolve ALL of them. I guess you want something where players can create their account with user & password? You need to secure them, too.

Ultimately, we could create a plugin that connects to your database, but we cannot ignore the side effects that will come to you.

Aerosys, thanks for responding.​

i am not making any mmorpg game. i have made adventure rpg already single player.
i just want to make leadership page and connect it with the game so i can make ranking and achievement system for game.

that's why i want send data to database on time of save or close game.
yes i need login system for that

i have basic knowledge of mysql queries and php, i can make database on mysql and connect with php
but i dont know how to do it on rpg maker mz
i did install the node moduels and try to make plugin but fail
just need plugin that will allow me connect to database

if you have idea about it please let me know thanks in adavance
What if the player names their character DROP TABLE?
Okay, so while your scope is pretty small (a leaderboard), the other obstacles from my post above persist. I think there are multiple ways to include a global leaderboard into a game, but none of them is easy. Tbf, if there were an easy way, my colleagues, including myself, would become jobless very quickly 😀

I'm unsure if you will find someone who will write a database connect plugin for RPG Maker because of the problems that will come.

i did install the node moduels and try to make plugin but fail
Maybe this helps: https://forums.rpgmakerweb.com/inde...s-in-an-rpg-maker-mv-project-tutorial.137598/

Aerosys, thanks for responding.​

i am not making any mmorpg game. i have made adventure rpg already single player.
i just want to make leadership page and connect it with the game so i can make ranking and achievement system for game.

that's why i want send data to database on time of save or close game.
yes i need login system for that

i have basic knowledge of mysql queries and php, i can make database on mysql and connect with php
but i dont know how to do it on rpg maker mz
i did install the node moduels and try to make plugin but fail
just need plugin that will allow me connect to database

if you have idea about it please let me know thanks in adavance
I'm just going to go ahead and stress that, as Aerosys already said, it's a very bad idea to have your game connect directly to a database. That's not how other games operate either.

The general setup is to make a back-end server that your game can communicate with via an API, and then have the server connect to the database. Then your game will use the API to request that the server add or retrieve things from the database, and the server will do so and then send an appropriate response to your game.

This is for the sake of security, scalability, and availability.
OPIC : CONNECTING RPG MAKER MV MZ TO MYSQL SERVER

DESC : I have created plugin that will allow you to connect your game to mysql server
you clan use this plugin to make leaderboard on website for your game or to make
kind of online thing for your game

REQUIREMENT : Download the plugin in the link and follow the video

Video link :


thanks
OPIC : CONNECTING RPG MAKER MV MZ TO MYSQL SERVER

DESC : I have created plugin that will allow you to connect your game to mysql server
you clan use this plugin to make leaderboard on website for your game or to make
kind of online thing for your game

REQUIREMENT : Download the plugin in the link and follow the video

Video link :


thanks

As previously queried, what if you name a character 'DROP TABLE'?
OPIC : CONNECTING RPG MAKER MV MZ TO MYSQL SERVER

DESC : I have created plugin that will allow you to connect your game to mysql server
you clan use this plugin to make leaderboard on website for your game or to make
kind of online thing for your game

REQUIREMENT : Download the plugin in the link and follow the video

Video link :


thanks

I think it's rather important to point out to everyone why using this plugin would be a very bad idea. @Aerosys already explained how to do this properly, but I guess didn't emphasise strongly enough why you want to do this properly.

RPG Maker MV/MZ games are really easy to modify for any tech-savvy player. There are even decryption tools that allow you to take an exported, decrypted game and simply open it in RPG Maker. This generally isn't a problem, since people cheating in single-player games doesn't in any way affect other players. But it does mean that any attempt at making leaderboards/tracking best scores is doomed to fail rather quickly, no matter how it's implemented.

Now, with this plugin specifically, since it's accessing the database directly and anyone will be able to modify it... you're basically giving every player complete control over the database. They can add arbitrary entries or just delete everything that was stored there as they please. Given how often eval is used in RM projects, they might even be able to inject working malware into other people's games.

This plugin can still be useful if only trusted people will ever get the game, e.g. when collecting analytics data in a closed beta, but I'd strongly advise against using it in any publicly available project.
Especially since the parameters contain the database password...
I think it's rather important to point out to everyone why using this plugin would be a very bad idea. @Aerosys already explained how to do this properly, but I guess didn't emphasise strongly enough why you want to do this properly.

RPG Maker MV/MZ games are really easy to modify for any tech-savvy player. There are even decryption tools that allow you to take an exported, decrypted game and simply open it in RPG Maker. This generally isn't a problem, since people cheating in single-player games doesn't in any way affect other players. But it does mean that any attempt at making leaderboards/tracking best scores is doomed to fail rather quickly, no matter how it's implemented.

Now, with this plugin specifically, since it's accessing the database directly and anyone will be able to modify it... you're basically giving every player complete control over the database. They can add arbitrary entries or just delete everything that was stored there as they please. Given how often eval is used in RM projects, they might even be able to inject working malware into other people's games.

This plugin can still be useful if only trusted people will ever get the game, e.g. when collecting analytics data in a closed beta, but I'd strongly advise against using it in any publicly available project.
It's also worth mentioning that anybody would have access to whatever information the database collects from other users. Presumably, the database would contain some type of information with which to identify each individual player (such as username, email address, a password, etc), and that information would be available for anybody to steal.

If the OP wants to waste his time by making an unreliable leaderboard, that's one thing. But being irresponsible with other people's data is a pretty big deal.
TOPIC - RPG MAKR MZ TUTORIALS RELATED TO MYSQL DATABASE

YOU CAN WATCH THE VEDIO AND LEARN THE CODING HOW TO CONNECT TO DATABASE AND USE IT

Original thread: https://forums.rpgmakerweb.com/threads/plugin-to-communicate-with-php-mysql.163595/