Jump to content
  • 0

How to totally wipe database (almost)


Bob_the_K

Question

Hi, we've rebuilt our server and made numerous changes.  Upon re-release, we want to wipe out all player made/placed objects, all vehicles, and all player data.  Everyone will be a new spawn with our standard loadout.  Everyone's starting over with all the new changes.

 

How would I do that without disrupting any trader data?  And can it be made into a stored procedure we can run on-demand if we ever want/need to do that again?

 

Thanks,
Bob

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

You can easily do this using HeidiSQL or a program similiar like that, or am I wrong?

 

Just use HeidiSQL to connect to your database, and export everything to SQL ( in case you want to go back... )

And then just right click on a table, and delete it's content...

 

That should do it, or am I wrong?

Link to comment
Share on other sites

  • 0

Yes as simple as right clicking character_data, object_data, player_data, and player_login and click empty table for each will wipe all player data, player made/placed objects and vehicles. Traders will not be affected.

 

As for making a stored procedure to do it for you, there is really no point as it can be done in 10 seconds by hand.

 

Just as Raoul had said make a backup of the database before the wipe just incase something happens. Better safe then sorry but you should be fine.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...