Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [SQL] Query altislife start
- [ERR] 1227 - Access denied; you need (at least one of) the SUPER privilege(s) for this operation
- [ERR] SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
- SET time_zone = "+00:00";
- --
- -- Compatible with newer MySQL versions. (After MySQL-5.5)
- -- This SQL uses utf8mb4 and has CURRENT_TIMESTAMP function.
- --
- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
- /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
- /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
- /*!40101 SET NAMES utf8mb4 */;
- --
- -- Database: `altislife`
- -- Default Schema
- --
- --
- -- Drop procedures to ensure no conflicts
- --
- DROP PROCEDURE IF EXISTS `resetLifeVehicles`;
- DROP PROCEDURE IF EXISTS `deleteDeadVehicles`;
- DROP PROCEDURE IF EXISTS `deleteOldHouses`;
- DROP PROCEDURE IF EXISTS `deleteOldGangs`;
- DROP PROCEDURE IF EXISTS `deleteOldContainers`;
- DROP PROCEDURE IF EXISTS `deleteOldWanted`;--
- -- Procedures
- -- Edit arma3 to match a user in MySQL
- -- For external databases: Edit localhost to match arma3server IP
- --
- CREATE DEFINER=`root`@`145.239.108.64 ` PROCEDURE `resetLifeVehicles`()
- BEGIN
- UPDATE `vehicles` SET `active`= 0;
- END;
- CREATE DEFINER=`root`@`145.239.108.64 ` PROCEDURE `deleteDeadVehicles`()
- BEGIN
- DELETE FROM `vehicles` WHERE `alive` = 0;
- END;
- CREATE DEFINER=`root`@`145.239.108.64 ` PROCEDURE `deleteOldHouses`()
- BEGIN
- DELETE FROM `houses` WHERE `owned` = 0;
- END;
- CREATE DEFINER=`root`@`145.239.108.64 ` PROCEDURE `deleteOldGangs`()
- BEGIN
- DELETE FROM `gangs` WHERE `active` = 0;
- END;
- CREATE DEFINER=`root`@`145.239.108.64 ` PROCEDURE `deleteOldContainers`()
- BEGIN
- DELETE FROM `containers` WHERE `owned` = 0;
- END;
- CREATE DEFINER=`root`@`145.239.108.64 ` PROCEDURE `deleteOldWanted`()
- BEGIN
- DELETE FROM `wanted` WHERE `active` = 0;
- END;
- -- --------------------------------------------------------
- --
- -- Table structure for table `players`
- --
- CREATE TABLE IF NOT EXISTS `players` (
- `uid` int(6) NOT NULL AUTO_INCREMENT,
- `name` varchar(32) NOT NULL,
- `aliases` text NOT NULL,
- `pid` varchar(17) NOT NULL,
- `cash` int(100) NOT NULL DEFAULT '0',
- `bankacc` int(100) NOT NULL DEFAULT '0',
- `coplevel` enum('0','1','2','3','4','5','6','7') NOT NULL DEFAULT '0',
- `mediclevel` enum('0','1','2','3','4','5') NOT NULL DEFAULT '0',
- `civ_licenses` text NOT NULL,
- `cop_licenses` text NOT NULL,
- `med_licenses` text NOT NULL,
- `civ_gear` text NOT NULL,
- `cop_gear` text NOT NULL,
- `med_gear` text NOT NULL,
- `civ_stats` varchar(32) NOT NULL DEFAULT '"[100,100,0]"',
- `cop_stats` varchar(32) NOT NULL DEFAULT '"[100,100,0]"',
- `med_stats` varchar(32) NOT NULL DEFAULT '"[100,100,0]"',
- `arrested` tinyint(1) NOT NULL DEFAULT '0',
- `adminlevel` enum('0','1','2','3','4','5') NOT NULL DEFAULT '0',
- `donorlevel` enum('0','1','2','3','4','5') NOT NULL DEFAULT '0',
- `blacklist` tinyint(1) NOT NULL DEFAULT '0',
- `civ_alive` tinyint(1) NOT NULL DEFAULT '0',
- `civ_position` varchar(64) NOT NULL DEFAULT '"[]"',
- `playtime` varchar(32) NOT NULL DEFAULT '"[0,0,0]"',
- `insert_time` timestamp DEFAULT CURRENT_TIMESTAMP,
- `last_seen` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- PRIMARY KEY (`uid`),
- UNIQUE KEY `pid` (`pid`),
- KEY `name` (`name`),
- KEY `blacklist` (`blacklist`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=12 ;
- -- --------------------------------------------------------
- --
- -- Table structure for table `vehicles`
- --
- CREATE TABLE IF NOT EXISTS `vehicles` (
- `id` int(6) NOT NULL AUTO_INCREMENT,
- `side` varchar(16) NOT NULL,
- `classname` varchar(64) NOT NULL,
- `type` varchar(16) NOT NULL,
- `pid` varchar(17) NOT NULL,
- `alive` tinyint(1) NOT NULL DEFAULT '1',
- `blacklist` tinyint(1) NOT NULL DEFAULT '0',
- `active` tinyint(1) NOT NULL DEFAULT '0',
- `plate` int(20) NOT NULL,
- `color` int(20) NOT NULL,
- `inventory` text NOT NULL,
- `gear` text NOT NULL,
- `fuel` double NOT NULL DEFAULT '1',
- `damage` varchar(256) NOT NULL,
- `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
- PRIMARY KEY (`id`),
- KEY `side` (`side`),
- KEY `pid` (`pid`),
- KEY `type` (`type`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=2 ;
- -- -------------------------
- [SQL] Finished with error
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement