Update 'README.md'

This commit is contained in:
Erreur32 2021-02-05 13:21:22 +01:00
parent 1f1489237b
commit 69abc09ba6

View file

@ -43,43 +43,46 @@
- mysql database (to store status server for graph) - mysql database (to store status server for graph)
Create `dayzstat` database first + user privilege. Checkout Schema database in SQL/table.sql Create `dayzstat` database first + user privilege. Checkout Schema database in SQL/table.sql
> -- Adminer 4.7.8 MySQL dump > -- Adminer 4.7.8 MySQL dump
> >
> SET NAMES utf8; > SET NAMES utf8;
> SET time_zone = '+00:00'; > SET time_zone = '+00:00';
> SET foreign_key_checks = 0; > SET foreign_key_checks = 0;
> SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; > SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
> >
> SET NAMES utf8mb4; > SET NAMES utf8mb4;
> >
> DROP DATABASE IF EXISTS `dayzstat`; > DROP DATABASE IF EXISTS `dayzstat`;
> CREATE DATABASE `dayzstat` /*!40100 DEFAULT CHARACTER SET utf8mb4 */; > CREATE DATABASE `dayzstat` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
> USE `dayzstat`; > USE `dayzstat`;
> >
> DROP TABLE IF EXISTS `StatServer_5`; > DROP TABLE IF EXISTS `StatServer_5`;
> CREATE TABLE `StatServer_5` ( > CREATE TABLE `StatServer_5` (
> `id` int(11) NOT NULL AUTO_INCREMENT, > `id` int(11) NOT NULL AUTO_INCREMENT,
> `date` datetime DEFAULT NULL ON UPDATE current_timestamp(), > `date` datetime DEFAULT NULL ON UPDATE current_timestamp(),
> `name` varchar(74) NOT NULL DEFAULT 'Offline', > `name` varchar(74) NOT NULL DEFAULT 'Offline',
> `players` varchar(32) NOT NULL DEFAULT '0', > `players` varchar(32) NOT NULL DEFAULT '0',
> `maxplayers` varchar(4) DEFAULT NULL, > `maxplayers` varchar(4) DEFAULT NULL,
> `map` varchar(19) DEFAULT NULL, > `map` varchar(19) DEFAULT NULL,
> `game` varchar(4) DEFAULT NULL, > `game` varchar(4) DEFAULT NULL,
> `version` varchar(15) DEFAULT NULL, > `version` varchar(15) DEFAULT NULL,
> `timeserver` varchar(12) DEFAULT NULL, > `timeserver` varchar(12) DEFAULT NULL,
> `timespeed` varchar(5) DEFAULT NULL, > `timespeed` varchar(5) DEFAULT NULL,
> `timespeedn` varchar(5) DEFAULT NULL, > `timespeedn` varchar(5) DEFAULT NULL,
> `battleye` tinytext DEFAULT NULL, > `mod` varchar(5) DEFAULT NULL,
> `hive` varchar(11) DEFAULT NULL, > `battleye` tinytext DEFAULT NULL,
> `connect` varchar(32) DEFAULT NULL, > `hive` varchar(11) DEFAULT NULL,
> `secure` tinytext DEFAULT NULL, > `connect` varchar(32) DEFAULT NULL,
> `ping` varchar(3) DEFAULT '0', > `secure` tinytext DEFAULT NULL,
> PRIMARY KEY (`id`), > `ping` varchar(3) DEFAULT '0',
> KEY `timeserver` (`timeserver`), > PRIMARY KEY (`id`),
> KEY `date` (`date`) > KEY `timeserver` (`timeserver`),
> ) ENGINE=InnoDB DEFAULT CHARSET=utf8; > KEY `date` (`date`)
> ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
>
>
> -- 2021-02-05 10:22:08
> >
> -- 2021-02-02 14:33:07
- **2 Differents way for your crontab** with Shell or php. Put *statserver_json.sh* in your crontab for mysql insert & creation of json file. - **2 Differents way for your crontab** with Shell or php. Put *statserver_json.sh* in your crontab for mysql insert & creation of json file.