Welcome to The Forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies and more


Common Database Queries


Recommended Posts

Select your database (for example dayz2username for Chernarus) and run these from phpMyAdmin or MySQL Workbench or Navicat

 

Fix every vehicle at once

UPDATE instance_vehicle SET damage=0, parts = '[]'

 

Refuel all the vehicles at once

UPDATE instance_vehicle SET fuel=1

 

Make vehicles spawn with full health

UPDATE vehicle SET damage_min=0, damage_max=0

 

Make vehicles currently on the server full health

UPDATE instance_vehicle SET fuel=1, damage=0, parts = '[]'

 

Delete all vehicles that have gone unused for more than 7 days

DELETE FROM instance_vehicle WHERE DATE(`last_updated`) 

 
Delete all vehicle spawn points that haven't spawned in-game
[code]DELETE FROM `world_vehicle` WHERE `id` NOT IN ( SELECT DISTINCT `world_vehicle_id` FROM `instance_vehicle`)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...