mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
924 lines
1.4 MiB
Text
924 lines
1.4 MiB
Text
|
-- MariaDB dump 10.17 Distrib 10.4.13-MariaDB, for Linux (x86_64)
|
||
|
--
|
||
|
-- Host: localhost Database: mysql
|
||
|
-- ------------------------------------------------------
|
||
|
-- Server version 10.4.13-MariaDB
|
||
|
|
||
|
/*!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 */;
|
||
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
||
|
/*!40103 SET TIME_ZONE='+00:00' */;
|
||
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
||
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
||
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
||
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `column_stats`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `column_stats`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `column_stats` (
|
||
|
`db_name` varchar(64) COLLATE utf8_bin NOT NULL,
|
||
|
`table_name` varchar(64) COLLATE utf8_bin NOT NULL,
|
||
|
`column_name` varchar(64) COLLATE utf8_bin NOT NULL,
|
||
|
`min_value` varbinary(255) DEFAULT NULL,
|
||
|
`max_value` varbinary(255) DEFAULT NULL,
|
||
|
`nulls_ratio` decimal(12,4) DEFAULT NULL,
|
||
|
`avg_length` decimal(12,4) DEFAULT NULL,
|
||
|
`avg_frequency` decimal(12,4) DEFAULT NULL,
|
||
|
`hist_size` tinyint(3) unsigned DEFAULT NULL,
|
||
|
`hist_type` enum('SINGLE_PREC_HB','DOUBLE_PREC_HB') COLLATE utf8_bin DEFAULT NULL,
|
||
|
`histogram` varbinary(255) DEFAULT NULL,
|
||
|
PRIMARY KEY (`db_name`,`table_name`,`column_name`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 COLLATE=utf8_bin PAGE_CHECKSUM=1 TRANSACTIONAL=0 COMMENT='Statistics on Columns';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `column_stats`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `column_stats` WRITE;
|
||
|
/*!40000 ALTER TABLE `column_stats` DISABLE KEYS */;
|
||
|
/*!40000 ALTER TABLE `column_stats` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `columns_priv`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `columns_priv`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `columns_priv` (
|
||
|
`Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`Table_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`Column_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||
|
`Column_priv` set('Select','Insert','Update','References') CHARACTER SET utf8 NOT NULL DEFAULT '',
|
||
|
PRIMARY KEY (`Host`,`Db`,`User`,`Table_name`,`Column_name`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 COLLATE=utf8_bin PAGE_CHECKSUM=1 TRANSACTIONAL=1 COMMENT='Column privileges';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `columns_priv`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `columns_priv` WRITE;
|
||
|
/*!40000 ALTER TABLE `columns_priv` DISABLE KEYS */;
|
||
|
/*!40000 ALTER TABLE `columns_priv` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `db`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `db`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `db` (
|
||
|
`Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||
|
`Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||
|
`Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||
|
`Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||
|
`Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||
|
`Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||
|
`Grant_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||
|
`References_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||
|
`Index_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||
|
`Alter_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||
|
`Create_tmp_table_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||
|
`Lock_tables_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||
|
`Create_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||
|
`Show_view_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||
|
`Create_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||
|
`Alter_routine_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||
|
`Execute_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||
|
`Event_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||
|
`Trigger_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||
|
`Delete_history_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||
|
PRIMARY KEY (`Host`,`Db`,`User`),
|
||
|
KEY `User` (`User`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 COLLATE=utf8_bin PAGE_CHECKSUM=1 TRANSACTIONAL=1 COMMENT='Database privileges';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `db`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `db` WRITE;
|
||
|
/*!40000 ALTER TABLE `db` DISABLE KEYS */;
|
||
|
INSERT INTO `db` VALUES ('%','test','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N','Y','Y','Y'),('%','test\\_%','','Y','Y','Y','Y','Y','Y','N','Y','Y','Y','Y','Y','Y','Y','Y','N','N','Y','Y','Y');
|
||
|
/*!40000 ALTER TABLE `db` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `event`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `event`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `event` (
|
||
|
`db` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`name` char(64) NOT NULL DEFAULT '',
|
||
|
`body` longblob NOT NULL,
|
||
|
`definer` char(141) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`execute_at` datetime DEFAULT NULL,
|
||
|
`interval_value` int(11) DEFAULT NULL,
|
||
|
`interval_field` enum('YEAR','QUARTER','MONTH','DAY','HOUR','MINUTE','WEEK','SECOND','MICROSECOND','YEAR_MONTH','DAY_HOUR','DAY_MINUTE','DAY_SECOND','HOUR_MINUTE','HOUR_SECOND','MINUTE_SECOND','DAY_MICROSECOND','HOUR_MICROSECOND','MINUTE_MICROSECOND','SECOND_MICROSECOND') DEFAULT NULL,
|
||
|
`created` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||
|
`modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||
|
`last_executed` datetime DEFAULT NULL,
|
||
|
`starts` datetime DEFAULT NULL,
|
||
|
`ends` datetime DEFAULT NULL,
|
||
|
`status` enum('ENABLED','DISABLED','SLAVESIDE_DISABLED') NOT NULL DEFAULT 'ENABLED',
|
||
|
`on_completion` enum('DROP','PRESERVE') NOT NULL DEFAULT 'DROP',
|
||
|
`sql_mode` set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','IGNORE_BAD_TABLE_OPTIONS','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH','EMPTY_STRING_IS_NULL','SIMULTANEOUS_ASSIGNMENT','TIME_ROUND_FRACTIONAL') NOT NULL DEFAULT '',
|
||
|
`comment` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`originator` int(10) unsigned NOT NULL,
|
||
|
`time_zone` char(64) CHARACTER SET latin1 NOT NULL DEFAULT 'SYSTEM',
|
||
|
`character_set_client` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
|
||
|
`collation_connection` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
|
||
|
`db_collation` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
|
||
|
`body_utf8` longblob DEFAULT NULL,
|
||
|
PRIMARY KEY (`db`,`name`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 PAGE_CHECKSUM=1 TRANSACTIONAL=1 COMMENT='Events';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `func`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `func`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `func` (
|
||
|
`name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`ret` tinyint(1) NOT NULL DEFAULT 0,
|
||
|
`dl` char(128) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`type` enum('function','aggregate') CHARACTER SET utf8 NOT NULL,
|
||
|
PRIMARY KEY (`name`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 COLLATE=utf8_bin PAGE_CHECKSUM=1 TRANSACTIONAL=1 COMMENT='User defined functions';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `func`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `func` WRITE;
|
||
|
/*!40000 ALTER TABLE `func` DISABLE KEYS */;
|
||
|
/*!40000 ALTER TABLE `func` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `global_priv`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `global_priv`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `global_priv` (
|
||
|
`Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`Priv` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '{}' CHECK (json_valid(`Priv`)),
|
||
|
PRIMARY KEY (`Host`,`User`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 COLLATE=utf8_bin PAGE_CHECKSUM=1 TRANSACTIONAL=1 COMMENT='Users and global privileges';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `global_priv`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `global_priv` WRITE;
|
||
|
/*!40000 ALTER TABLE `global_priv` DISABLE KEYS */;
|
||
|
INSERT INTO `global_priv` VALUES ('localhost','mariadb.sys','{\"access\":0,\"plugin\":\"mysql_native_password\",\"authentication_string\":\"\",\"account_locked\":true,\"password_last_changed\":0}'),('localhost','root','{\"access\":18446744073709551615,\"plugin\":\"mysql_native_password\",\"authentication_string\":\"\",\"auth_or\":[{},{\"plugin\":\"unix_socket\"}],\"password_last_changed\":1590943617}'),('localhost','','{}'),('asus','','{}');
|
||
|
/*!40000 ALTER TABLE `global_priv` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `gtid_slave_pos`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `gtid_slave_pos`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `gtid_slave_pos` (
|
||
|
`domain_id` int(10) unsigned NOT NULL,
|
||
|
`sub_id` bigint(20) unsigned NOT NULL,
|
||
|
`server_id` int(10) unsigned NOT NULL,
|
||
|
`seq_no` bigint(20) unsigned NOT NULL,
|
||
|
PRIMARY KEY (`domain_id`,`sub_id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT='Replication slave GTID position';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `gtid_slave_pos`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `gtid_slave_pos` WRITE;
|
||
|
/*!40000 ALTER TABLE `gtid_slave_pos` DISABLE KEYS */;
|
||
|
/*!40000 ALTER TABLE `gtid_slave_pos` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `help_category`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `help_category`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `help_category` (
|
||
|
`help_category_id` smallint(5) unsigned NOT NULL,
|
||
|
`name` char(64) NOT NULL,
|
||
|
`parent_category_id` smallint(5) unsigned DEFAULT NULL,
|
||
|
`url` text NOT NULL,
|
||
|
PRIMARY KEY (`help_category_id`),
|
||
|
UNIQUE KEY `name` (`name`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 PAGE_CHECKSUM=1 TRANSACTIONAL=0 COMMENT='help categories';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `help_category`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `help_category` WRITE;
|
||
|
/*!40000 ALTER TABLE `help_category` DISABLE KEYS */;
|
||
|
INSERT INTO `help_category` VALUES (1,'Geographic',0,''),(2,'Polygon Properties',34,''),(3,'WKT',34,''),(4,'Numeric Functions',38,''),(5,'Plugins',35,''),(6,'MBR',34,''),(7,'Control Flow Functions',38,''),(8,'Transactions',35,''),(9,'Help Metadata',35,''),(10,'Account Management',35,''),(11,'Point Properties',34,''),(12,'Encryption Functions',38,''),(13,'LineString Properties',34,''),(14,'Miscellaneous Functions',38,''),(15,'Logical Operators',38,''),(16,'Functions and Modifiers for Use with GROUP BY',35,''),(17,'Information Functions',38,''),(18,'Comparison Operators',38,''),(19,'Bit Functions',38,''),(20,'Table Maintenance',35,''),(21,'User-Defined Functions',35,''),(22,'Data Types',35,''),(23,'Compound Statements',35,''),(24,'Geometry Constructors',34,''),(25,'GeometryCollection Properties',1,''),(26,'Administration',35,''),(27,'Data Manipulation',35,''),(28,'Utility',35,''),(29,'Language Structure',35,''),(30,'Geometry Relations',34,''),(31,'Date and Time Functions',38,''),(32,'WKB',34,''),(33,'Procedures',35,''),(34,'Geographic Features',35,''),(35,'Contents',0,''),(36,'Geometry Properties',34,''),(37,'String Functions',38,''),(38,'Functions',35,''),(39,'Data Definition',35,''),(40,'Sequences',35,''),(41,'JSON Functions',38,''),(42,'Window Functions',38,''),(43,'Spider Functions',38,''),(44,'Dynamic Column Functions',38,''),(45,'Storage Engines',35,''),(46,'InnoDB',45,''),(47,'Optimization and Indexes',35,''),(48,'Full-text Indexes',47,'');
|
||
|
/*!40000 ALTER TABLE `help_category` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `help_keyword`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `help_keyword`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `help_keyword` (
|
||
|
`help_keyword_id` int(10) unsigned NOT NULL,
|
||
|
`name` char(64) NOT NULL,
|
||
|
PRIMARY KEY (`help_keyword_id`),
|
||
|
UNIQUE KEY `name` (`name`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 PAGE_CHECKSUM=1 TRANSACTIONAL=0 COMMENT='help keywords';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `help_keyword`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `help_keyword` WRITE;
|
||
|
/*!40000 ALTER TABLE `help_keyword` DISABLE KEYS */;
|
||
|
INSERT INTO `help_keyword` VALUES (1,'account'),(2,'aggregate'),(3,'add'),(4,'after'),(5,'alter'),(6,'completion'),(7,'schedule'),(8,'server'),(9,'columns'),(10,'drop'),(11,'analyze'),(12,'json'),(13,'value'),(14,'master_ssl_ca'),(15,'master_ssl_verify_cert'),(16,'nchar'),(17,'action'),(18,'create'),(19,'at'),(20,'starts'),(21,'returns'),(22,'host'),(23,'row_format'),(24,'deallocate prepare'),(25,'drop prepare'),(26,'against'),(27,'fulltext'),(28,'escape'),(29,'mode'),(30,'repeat'),(31,'sql_big_result'),(32,'isolation'),(33,'read committed'),(34,'read uncommitted'),(35,'repeatable read'),(36,'serializable'),(37,'work');
|
||
|
/*!40000 ALTER TABLE `help_keyword` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `help_relation`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `help_relation`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `help_relation` (
|
||
|
`help_topic_id` int(10) unsigned NOT NULL,
|
||
|
`help_keyword_id` int(10) unsigned NOT NULL,
|
||
|
PRIMARY KEY (`help_keyword_id`,`help_topic_id`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 PAGE_CHECKSUM=1 TRANSACTIONAL=0 COMMENT='keyword-topic relation';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `help_relation`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `help_relation` WRITE;
|
||
|
/*!40000 ALTER TABLE `help_relation` DISABLE KEYS */;
|
||
|
INSERT INTO `help_relation` VALUES (116,1),(118,1),(119,1),(183,2),(184,2),(185,2),(186,2),(187,2),(188,2),(189,2),(190,2),(191,2),(192,2),(193,2),(194,2),(196,2),(197,2),(199,2),(258,2),(724,2),(652,3),(751,3),(652,4),(119,5),(645,5),(646,5),(647,5),(648,5),(649,5),(650,5),(652,5),(653,5),(654,5),(646,6),(657,6),(646,7),(657,7),(651,8),(357,9),(652,9),(665,9),(97,10),(120,10),(259,10),(652,10),(669,10),(670,10),(671,10),(672,10),(673,10),(674,10),(675,10),(676,10),(677,10),(678,10),(680,10),(681,10),(251,11),(444,11),(446,11),(447,11),(280,12),(447,12),(448,12),(449,12),(264,13),(317,13),(320,13),(419,13),(435,13),(95,14),(95,15),(271,16),(655,17),(665,17),(118,18),(127,18),(258,18),(656,18),(657,18),(658,18),(659,18),(660,18),(661,18),(662,18),(663,18),(664,18),(665,18),(666,18),(667,18),(668,18),(657,19),(657,20),(258,21),(664,22),(665,23),(97,24),(97,25),(614,26),(752,26),(752,27),(753,27),(607,28),(436,29),(614,29),(316,30),(625,30),(436,31),(108,32),(108,33),(108,34),(108,35),(108,36),(110,37);
|
||
|
/*!40000 ALTER TABLE `help_relation` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `help_topic`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `help_topic`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `help_topic` (
|
||
|
`help_topic_id` int(10) unsigned NOT NULL,
|
||
|
`name` char(64) NOT NULL,
|
||
|
`help_category_id` smallint(5) unsigned NOT NULL,
|
||
|
`description` text NOT NULL,
|
||
|
`example` text NOT NULL,
|
||
|
`url` text NOT NULL,
|
||
|
PRIMARY KEY (`help_topic_id`),
|
||
|
UNIQUE KEY `name` (`name`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 PAGE_CHECKSUM=1 TRANSACTIONAL=0 COMMENT='help topics';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `help_topic`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `help_topic` WRITE;
|
||
|
/*!40000 ALTER TABLE `help_topic` DISABLE KEYS */;
|
||
|
INSERT INTO `help_topic` VALUES (1,'HELP_DATE',9,'This help information was generated from the MariaDB Knowledge Base\non 2 September 2019.','',''),(2,'AREA',2,'A synonym for ST_AREA.\n \n\n \n \n \n \n \n \n \n\nURL: https://mariadb.com/kb/en/polygon-properties-area/','','https://mariadb.com/kb/en/polygon-properties-area/'),(3,'CENTROID',2,'A synonym for ST_CENTROID.\n \n\n \n \n \n \n \n \n \n\nURL: https://mariadb.com/kb/en/centroid/','','https://mariadb.com/kb/en/centroid/'),(4,'ExteriorRing',2,'A synonym for ST_ExteriorRing.\n \n\n \n \n \n \n \n \n \n\nURL:\nhttps://mariadb.com/kb/en/polygon-properties-exteriorring/','','https://mariadb.com/kb/en/polygon-properties-exteriorring/'),(5,'InteriorRingN',2,'A synonym for ST_InteriorRingN.\n \n\n \n \n \n \n \n \n \n\nURL:\nhttps://mariadb.com/kb/en/polygon-properties-interiorringn/','','https://mariadb.com/kb/en/polygon-properties-interiorringn/'),(6,'NumInteriorRings',2,'A synonym for ST_NumInteriorRings.\n \n\n \n \n \n \n \n \n \n\nURL:\nhttps://mariadb.com/kb/en/polygon-properties-numinteriorrings/','','https://mariadb.com/kb/en/polygon-properties-numinteriorrings/'),(7,'ST_AREA',2,'Syntax\n------ \nST_Area(poly)\nArea(poly)\n \nDescription\n----------- \nReturns as a double-precision number the area of the Polygon\nvalue poly, as measured in its spatial reference system.\n \nST_Area() and Area() are synonyms.\n \nExamples\n-------- \nSET @poly = \'Polygon((0 0,0 3,3 0,0 0),(1 1,1 2,2 1,1\n1))\';\n \nSELECT Area(GeomFromText(@poly));\n+---------------------------+\n| Area(GeomFromText(@poly)) |\n+---------------------------+\n| 4 |\n+---------------------------+\n \n\n \n \n \n \n \n \n \n\nURL: https://mariadb.com/kb/en/st_area/','','https://mariadb.com/kb/en/st_area/'),(8,'ST_CENTROID',2,'Syntax\n------ \nST_Centroid(mpoly)\nCentroid(mpoly)\n \nDescription\n----------- \nReturns a point reflecting the mathematical centroid\n(geometric center) for the MultiPolygon mpoly. The resulting\npoint will not necessarily be on the MultiPolygon. \n \nST_Centroid() and Centroid() are synonyms.\n \nExamples\n-------- \nSET @poly = ST_GeomFromText(\'POLYGON((0 0,20 0,20 20,0 20,0\n0))\');\nSELECT ST_AsText(ST_Centroid(@poly)) AS center;\n \n+--------------+\n| center |\n+--------------+\n| POINT(10 10) |\n+--------------+\n \n\n \n \n \n \n \n \n \n\nURL: https://mariadb.com/kb/en/st_centroid/','','https://mariadb.com/kb/en/st_centroid/'),(9,'ST_ExteriorRing',2,'Syntax\n------ \nST_ExteriorRing(poly)\nExteriorRing(poly)\n \nDescription\n----------- \nReturns the exterior ring of the Polygon value poly as a\nLineString.\n \nST_ExteriorRing() and ExteriorRing() are synonyms.\n \nExamples\n-------- \nSET @poly = \'Polygon((0 0,0 3,3 3,3 0,0 0),(1 1,1 2,2 2,2\n1,1 1))\';\n \nSELECT AsText(ExteriorRing(GeomFromText(@poly)));\n+-------------------------------------------+\n| AsText(ExteriorRing(GeomFromText(@poly))) |\n+-------------------------------------------+\n| LINESTRING(0 0,0 3,3 3,3 0,0 0) |\n+-------------------------------------------+\n \n\n \n \n \n \n \n \n \n\nURL: https://mariadb.com/kb/en/st_exteriorring/','','https://mariadb.com/kb/en/st_exteriorring/'),(10,'ST_InteriorRingN',2,'Syntax\n------ \nST_InteriorRingN(poly,N)\nInteriorRingN(poly,N)\n \nDescription\n----------- \nReturns the N-th interior ring for the Polygon value poly as\na LineString. Rings are numbered beginning with 1.\n \nST_InteriorRingN() and InteriorRingN() are synonyms.\n \nExamples\n-------- \nSET @poly = \'Polygon((0 0,0 3,3 3,3 0,0 0),(1 1,1 2,2 2,2\n1,1 1))\';\n \nSELECT AsText(InteriorRingN(GeomFromText(@poly),1));\n+----------------------------------------------+\n| AsText(InteriorRingN(GeomFromText(@poly),1)) |\n+----------------------------------------------+\n| LINESTRING(1 1,1 2,2 2,2 1,1 1) |\n+----------------------------------------------+\n \n\n \n \n \n \n \n \n \n\nURL: https://mariadb.com/kb/en/st_interiorringn/','','https://mariadb.com/kb/en/st_interiorringn/'),(11,'ST_NumInteriorRings',2,'Syntax\n------ \nST_NumInteriorRings(poly)\nNumInteriorRings(poly)\n \nDescription\n-----
|
||
|
INSERT INTO `help_topic` VALUES (447,'ANALYZE FORMAT=JSON',28,'ANALYZE FORMAT=JSON is a mix of the EXPLAIN FORMAT=JSON and\nANALYZE statement features. ANALYZE FORMAT=JSON $statement\nwill execute $statement, and then print the output of\nEXPLAIN FORMAT=JSON, amended with the data from query\nexecution.\n \nBasic Execution Data\n \nYou can get the following also from tabular ANALYZE\nstatement form:\nr_rows is provided for any node that reads rows. It shows\nhow many rows were read, on average \nr_filtered is provided whenever there is a condition that is\nchecked. It shows the percentage of rows left after checking\nthe condition.\n \nAdvanced Execution Data\n \nThe most important data that is not available in tabula\nANALYZE statement are:\nr_loops field. This shows how many times the node was\nexecuted. Most query plan elements have this field.\nr_total_time_ms field. It shows how much time in total was\nspent executing this node. If the node has subnodes, their\nexecution time is included.\nr_buffer_size field. Query plan nodes that make use of\nbuffers report the size of buffer that was was used.\n \nData About Individual Query Plan Nodes\n \nfilesort node reports whether sorting was done with LIMIT n\nparameter, and how many rows were in the sort result. \nblock-nl-join node has r_loops field, which allows to tell\nwhether Using join buffer was efficient \nrange-checked-for-each-record reports counters that show the\nresult of the check. \nexpression-cache is used for subqueries, and it reports how\nmany times the cache was used, and what cache hit ratio was.\nunion_result node has r_rows so one can see how many rows\nwere produced after UNION operation\nand so forth\n \nUse Cases\n \nSee Examples of ANALYZE FORMAT=JSON.\n \n\n \n \n \n \n \n \n \n\nURL: https://mariadb.com/kb/en/analyze-format-json/','','https://mariadb.com/kb/en/analyze-format-json/'),(440,'UNION',27,'UNION is used to combine the results from multiple SELECT\nstatements into a single result set.\n \nSyntax\n------ \nSELECT ...\nUNION [ALL | DISTINCT] SELECT ...\n[UNION [ALL | DISTINCT] SELECT ...]\n[ORDER BY [column [, column ...]]]\n[LIMIT {[offset,] row_count | row_count OFFSET offset}]\n \nDescription\n----------- \nUNION is used to combine the results from multiple SELECT\nstatements into a single result set.\n \nThe column names from the first SELECT statement are used as\nthe column names for the results returned. Selected columns\nlisted in corresponding positions of each SELECT statement\nshould have the same data type. (For example, the first\ncolumn selected by the first statement should have the same\ntype as the first column selected by the other statements.)\n \nIf they don\'t, the type and length of the columns in the\nresult take into account the values returned by all of the\nSELECTs, so there is no need for explicit casting. Note that\ncurrently this is not the case for recursive CTEs - see\nMDEV-12325.\n \nTable names can be specified as db_name.tbl_name. This\npermits writing UNIONs which involve multiple databases. See\nIdentifier Qualifiers for syntax details.\n \nUNION queries cannot be used with aggregate functions.\n \nALL/DISTINCT\n \nThe ALL keyword causes duplicate rows to be preserved. The\nDISTINCT keyword (the default if the keyword is omitted)\ncauses duplicate rows to be removed by the results.\n \nUNION ALL and UNION DISTINCT can both be present in a query.\nIn this case, UNION DISTINCT will override any UNION ALLs to\nits left.\n \nUntil MariaDB 10.1.1, all UNION ALL statements required the\nserver to create a temporary table. Since MariaDB 10.1.1,\nthe server can in most cases execute UNION ALL without\ncreating a temporary table, improving performance (see\nMDEV-334).\n \nORDER BY and LIMIT\n \nIndividual SELECTs can contain their own ORDER BY and LIMIT\nclauses. In this case, the individual queries need to be\nwrapped between parentheses. However, this does not affect\nthe order of the UNION, so they only are useful to limit the\nrecord read by one SELECT.\n \nThe UNION can have global ORDER BY and LIMIT clau
|
||
|
/*!40000 ALTER TABLE `help_topic` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `index_stats`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `index_stats`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `index_stats` (
|
||
|
`db_name` varchar(64) COLLATE utf8_bin NOT NULL,
|
||
|
`table_name` varchar(64) COLLATE utf8_bin NOT NULL,
|
||
|
`index_name` varchar(64) COLLATE utf8_bin NOT NULL,
|
||
|
`prefix_arity` int(11) unsigned NOT NULL,
|
||
|
`avg_frequency` decimal(12,4) DEFAULT NULL,
|
||
|
PRIMARY KEY (`db_name`,`table_name`,`index_name`,`prefix_arity`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 COLLATE=utf8_bin PAGE_CHECKSUM=1 TRANSACTIONAL=0 COMMENT='Statistics on Indexes';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `index_stats`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `index_stats` WRITE;
|
||
|
/*!40000 ALTER TABLE `index_stats` DISABLE KEYS */;
|
||
|
/*!40000 ALTER TABLE `index_stats` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `innodb_index_stats`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `innodb_index_stats`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `innodb_index_stats` (
|
||
|
`database_name` varchar(64) COLLATE utf8_bin NOT NULL,
|
||
|
`table_name` varchar(199) COLLATE utf8_bin NOT NULL,
|
||
|
`index_name` varchar(64) COLLATE utf8_bin NOT NULL,
|
||
|
`last_update` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||
|
`stat_name` varchar(64) COLLATE utf8_bin NOT NULL,
|
||
|
`stat_value` bigint(20) unsigned NOT NULL,
|
||
|
`sample_size` bigint(20) unsigned DEFAULT NULL,
|
||
|
`stat_description` varchar(1024) COLLATE utf8_bin NOT NULL,
|
||
|
PRIMARY KEY (`database_name`,`table_name`,`index_name`,`stat_name`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `innodb_index_stats`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `innodb_index_stats` WRITE;
|
||
|
/*!40000 ALTER TABLE `innodb_index_stats` DISABLE KEYS */;
|
||
|
INSERT INTO `innodb_index_stats` VALUES ('mysql','gtid_slave_pos','PRIMARY','2020-05-31 16:18:29','n_diff_pfx01',0,1,'domain_id'),('mysql','gtid_slave_pos','PRIMARY','2020-05-31 16:18:29','n_diff_pfx02',0,1,'domain_id,sub_id'),('mysql','gtid_slave_pos','PRIMARY','2020-05-31 16:18:29','n_leaf_pages',1,NULL,'Number of leaf pages in the index'),('mysql','gtid_slave_pos','PRIMARY','2020-05-31 16:18:29','size',1,NULL,'Number of pages in the index');
|
||
|
/*!40000 ALTER TABLE `innodb_index_stats` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `innodb_table_stats`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `innodb_table_stats`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `innodb_table_stats` (
|
||
|
`database_name` varchar(64) COLLATE utf8_bin NOT NULL,
|
||
|
`table_name` varchar(199) COLLATE utf8_bin NOT NULL,
|
||
|
`last_update` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||
|
`n_rows` bigint(20) unsigned NOT NULL,
|
||
|
`clustered_index_size` bigint(20) unsigned NOT NULL,
|
||
|
`sum_of_other_index_sizes` bigint(20) unsigned NOT NULL,
|
||
|
PRIMARY KEY (`database_name`,`table_name`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `innodb_table_stats`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `innodb_table_stats` WRITE;
|
||
|
/*!40000 ALTER TABLE `innodb_table_stats` DISABLE KEYS */;
|
||
|
INSERT INTO `innodb_table_stats` VALUES ('mysql','gtid_slave_pos','2020-05-31 16:18:29',0,1,0);
|
||
|
/*!40000 ALTER TABLE `innodb_table_stats` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `plugin`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `plugin`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `plugin` (
|
||
|
`name` varchar(64) NOT NULL DEFAULT '',
|
||
|
`dl` varchar(128) NOT NULL DEFAULT '',
|
||
|
PRIMARY KEY (`name`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 PAGE_CHECKSUM=1 TRANSACTIONAL=1 COMMENT='MySQL plugins';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `plugin`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `plugin` WRITE;
|
||
|
/*!40000 ALTER TABLE `plugin` DISABLE KEYS */;
|
||
|
/*!40000 ALTER TABLE `plugin` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `proc`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `proc`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `proc` (
|
||
|
`db` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`name` char(64) NOT NULL DEFAULT '',
|
||
|
`type` enum('FUNCTION','PROCEDURE','PACKAGE','PACKAGE BODY') NOT NULL,
|
||
|
`specific_name` char(64) NOT NULL DEFAULT '',
|
||
|
`language` enum('SQL') NOT NULL DEFAULT 'SQL',
|
||
|
`sql_data_access` enum('CONTAINS_SQL','NO_SQL','READS_SQL_DATA','MODIFIES_SQL_DATA') NOT NULL DEFAULT 'CONTAINS_SQL',
|
||
|
`is_deterministic` enum('YES','NO') NOT NULL DEFAULT 'NO',
|
||
|
`security_type` enum('INVOKER','DEFINER') NOT NULL DEFAULT 'DEFINER',
|
||
|
`param_list` blob NOT NULL,
|
||
|
`returns` longblob NOT NULL,
|
||
|
`body` longblob NOT NULL,
|
||
|
`definer` char(141) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`created` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||
|
`modified` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||
|
`sql_mode` set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','IGNORE_BAD_TABLE_OPTIONS','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH','EMPTY_STRING_IS_NULL','SIMULTANEOUS_ASSIGNMENT','TIME_ROUND_FRACTIONAL') NOT NULL DEFAULT '',
|
||
|
`comment` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
|
||
|
`character_set_client` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
|
||
|
`collation_connection` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
|
||
|
`db_collation` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
|
||
|
`body_utf8` longblob DEFAULT NULL,
|
||
|
`aggregate` enum('NONE','GROUP') NOT NULL DEFAULT 'NONE',
|
||
|
PRIMARY KEY (`db`,`name`,`type`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 PAGE_CHECKSUM=1 TRANSACTIONAL=1 COMMENT='Stored Procedures';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `proc`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `proc` WRITE;
|
||
|
/*!40000 ALTER TABLE `proc` DISABLE KEYS */;
|
||
|
INSERT INTO `proc` VALUES ('mysql','AddGeometryColumn','PROCEDURE','AddGeometryColumn','SQL','CONTAINS_SQL','NO','INVOKER','catalog varchar(64), t_schema varchar(64),\n t_name varchar(64), geometry_column varchar(64), t_srid int','','begin\n set @qwe= concat(\'ALTER TABLE \', t_schema, \'.\', t_name, \' ADD \', geometry_column,\' GEOMETRY REF_SYSTEM_ID=\', t_srid); PREPARE ls from @qwe; execute ls; deallocate prepare ls; end','mariadb.sys@localhost','2020-05-31 16:18:29','2020-05-31 16:18:29','','','utf8','utf8_general_ci','latin1_swedish_ci','begin\n set @qwe= concat(\'ALTER TABLE \', t_schema, \'.\', t_name, \' ADD \', geometry_column,\' GEOMETRY REF_SYSTEM_ID=\', t_srid); PREPARE ls from @qwe; execute ls; deallocate prepare ls; end','NONE'),('mysql','DropGeometryColumn','PROCEDURE','DropGeometryColumn','SQL','CONTAINS_SQL','NO','INVOKER','catalog varchar(64), t_schema varchar(64),\n t_name varchar(64), geometry_column varchar(64)','','begin\n set @qwe= concat(\'ALTER TABLE \', t_schema, \'.\', t_name, \' DROP \', geometry_column); PREPARE ls from @qwe; execute ls; deallocate prepare ls; end','mariadb.sys@localhost','2020-05-31 16:18:29','2020-05-31 16:18:29','','','utf8','utf8_general_ci','latin1_swedish_ci','begin\n set @qwe= concat(\'ALTER TABLE \', t_schema, \'.\', t_name, \' DROP \', geometry_column); PREPARE ls from @qwe; execute ls; deallocate prepare ls; end','NONE');
|
||
|
/*!40000 ALTER TABLE `proc` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `procs_priv`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `procs_priv`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `procs_priv` (
|
||
|
`Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`Routine_name` char(64) CHARACTER SET utf8 NOT NULL DEFAULT '',
|
||
|
`Routine_type` enum('FUNCTION','PROCEDURE','PACKAGE','PACKAGE BODY') COLLATE utf8_bin NOT NULL,
|
||
|
`Grantor` char(141) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`Proc_priv` set('Execute','Alter Routine','Grant') CHARACTER SET utf8 NOT NULL DEFAULT '',
|
||
|
`Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||
|
PRIMARY KEY (`Host`,`Db`,`User`,`Routine_name`,`Routine_type`),
|
||
|
KEY `Grantor` (`Grantor`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 COLLATE=utf8_bin PAGE_CHECKSUM=1 TRANSACTIONAL=1 COMMENT='Procedure privileges';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `procs_priv`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `procs_priv` WRITE;
|
||
|
/*!40000 ALTER TABLE `procs_priv` DISABLE KEYS */;
|
||
|
/*!40000 ALTER TABLE `procs_priv` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `proxies_priv`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `proxies_priv`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `proxies_priv` (
|
||
|
`Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`Proxied_host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`Proxied_user` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`With_grant` tinyint(1) NOT NULL DEFAULT 0,
|
||
|
`Grantor` char(141) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||
|
PRIMARY KEY (`Host`,`User`,`Proxied_host`,`Proxied_user`),
|
||
|
KEY `Grantor` (`Grantor`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 COLLATE=utf8_bin PAGE_CHECKSUM=1 TRANSACTIONAL=1 COMMENT='User proxy privileges';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `proxies_priv`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `proxies_priv` WRITE;
|
||
|
/*!40000 ALTER TABLE `proxies_priv` DISABLE KEYS */;
|
||
|
INSERT INTO `proxies_priv` VALUES ('localhost','root','','',1,'','2020-05-31 16:18:28'),('asus','root','','',1,'','2020-05-31 16:18:29');
|
||
|
/*!40000 ALTER TABLE `proxies_priv` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `roles_mapping`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `roles_mapping`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `roles_mapping` (
|
||
|
`Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`Role` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`Admin_option` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N',
|
||
|
UNIQUE KEY `Host` (`Host`,`User`,`Role`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 COLLATE=utf8_bin PAGE_CHECKSUM=1 TRANSACTIONAL=1 COMMENT='Granted roles';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `roles_mapping`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `roles_mapping` WRITE;
|
||
|
/*!40000 ALTER TABLE `roles_mapping` DISABLE KEYS */;
|
||
|
/*!40000 ALTER TABLE `roles_mapping` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `servers`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `servers`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `servers` (
|
||
|
`Server_name` char(64) NOT NULL DEFAULT '',
|
||
|
`Host` varchar(2048) NOT NULL DEFAULT '',
|
||
|
`Db` char(64) NOT NULL DEFAULT '',
|
||
|
`Username` char(80) NOT NULL DEFAULT '',
|
||
|
`Password` char(64) NOT NULL DEFAULT '',
|
||
|
`Port` int(4) NOT NULL DEFAULT 0,
|
||
|
`Socket` char(64) NOT NULL DEFAULT '',
|
||
|
`Wrapper` char(64) NOT NULL DEFAULT '',
|
||
|
`Owner` varchar(512) NOT NULL DEFAULT '',
|
||
|
PRIMARY KEY (`Server_name`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 PAGE_CHECKSUM=1 TRANSACTIONAL=1 COMMENT='MySQL Foreign Servers table';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `servers`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `servers` WRITE;
|
||
|
/*!40000 ALTER TABLE `servers` DISABLE KEYS */;
|
||
|
/*!40000 ALTER TABLE `servers` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `table_stats`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `table_stats`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `table_stats` (
|
||
|
`db_name` varchar(64) COLLATE utf8_bin NOT NULL,
|
||
|
`table_name` varchar(64) COLLATE utf8_bin NOT NULL,
|
||
|
`cardinality` bigint(21) unsigned DEFAULT NULL,
|
||
|
PRIMARY KEY (`db_name`,`table_name`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 COLLATE=utf8_bin PAGE_CHECKSUM=1 TRANSACTIONAL=0 COMMENT='Statistics on Tables';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `table_stats`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `table_stats` WRITE;
|
||
|
/*!40000 ALTER TABLE `table_stats` DISABLE KEYS */;
|
||
|
/*!40000 ALTER TABLE `table_stats` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `tables_priv`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `tables_priv`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `tables_priv` (
|
||
|
`Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`User` char(80) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`Table_name` char(64) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`Grantor` char(141) COLLATE utf8_bin NOT NULL DEFAULT '',
|
||
|
`Timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||
|
`Table_priv` set('Select','Insert','Update','Delete','Create','Drop','Grant','References','Index','Alter','Create View','Show view','Trigger','Delete versioning rows') CHARACTER SET utf8 NOT NULL DEFAULT '',
|
||
|
`Column_priv` set('Select','Insert','Update','References') CHARACTER SET utf8 NOT NULL DEFAULT '',
|
||
|
PRIMARY KEY (`Host`,`Db`,`User`,`Table_name`),
|
||
|
KEY `Grantor` (`Grantor`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 COLLATE=utf8_bin PAGE_CHECKSUM=1 TRANSACTIONAL=1 COMMENT='Table privileges';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `tables_priv`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `tables_priv` WRITE;
|
||
|
/*!40000 ALTER TABLE `tables_priv` DISABLE KEYS */;
|
||
|
INSERT INTO `tables_priv` VALUES ('localhost','mysql','mariadb.sys','global_priv','root@localhost','0000-00-00 00:00:00','Select,Update,Delete','');
|
||
|
/*!40000 ALTER TABLE `tables_priv` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `time_zone`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `time_zone`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `time_zone` (
|
||
|
`Time_zone_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||
|
`Use_leap_seconds` enum('Y','N') NOT NULL DEFAULT 'N',
|
||
|
PRIMARY KEY (`Time_zone_id`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 PAGE_CHECKSUM=1 TRANSACTIONAL=1 COMMENT='Time zones';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `time_zone`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `time_zone` WRITE;
|
||
|
/*!40000 ALTER TABLE `time_zone` DISABLE KEYS */;
|
||
|
/*!40000 ALTER TABLE `time_zone` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `time_zone_leap_second`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `time_zone_leap_second`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `time_zone_leap_second` (
|
||
|
`Transition_time` bigint(20) NOT NULL,
|
||
|
`Correction` int(11) NOT NULL,
|
||
|
PRIMARY KEY (`Transition_time`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 PAGE_CHECKSUM=1 TRANSACTIONAL=1 COMMENT='Leap seconds information for time zones';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `time_zone_leap_second`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `time_zone_leap_second` WRITE;
|
||
|
/*!40000 ALTER TABLE `time_zone_leap_second` DISABLE KEYS */;
|
||
|
/*!40000 ALTER TABLE `time_zone_leap_second` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `time_zone_name`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `time_zone_name`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `time_zone_name` (
|
||
|
`Name` char(64) NOT NULL,
|
||
|
`Time_zone_id` int(10) unsigned NOT NULL,
|
||
|
PRIMARY KEY (`Name`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 PAGE_CHECKSUM=1 TRANSACTIONAL=1 COMMENT='Time zone names';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `time_zone_name`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `time_zone_name` WRITE;
|
||
|
/*!40000 ALTER TABLE `time_zone_name` DISABLE KEYS */;
|
||
|
/*!40000 ALTER TABLE `time_zone_name` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `time_zone_transition`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `time_zone_transition`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `time_zone_transition` (
|
||
|
`Time_zone_id` int(10) unsigned NOT NULL,
|
||
|
`Transition_time` bigint(20) NOT NULL,
|
||
|
`Transition_type_id` int(10) unsigned NOT NULL,
|
||
|
PRIMARY KEY (`Time_zone_id`,`Transition_time`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 PAGE_CHECKSUM=1 TRANSACTIONAL=1 COMMENT='Time zone transitions';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `time_zone_transition`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `time_zone_transition` WRITE;
|
||
|
/*!40000 ALTER TABLE `time_zone_transition` DISABLE KEYS */;
|
||
|
/*!40000 ALTER TABLE `time_zone_transition` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `time_zone_transition_type`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `time_zone_transition_type`;
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE `time_zone_transition_type` (
|
||
|
`Time_zone_id` int(10) unsigned NOT NULL,
|
||
|
`Transition_type_id` int(10) unsigned NOT NULL,
|
||
|
`Offset` int(11) NOT NULL DEFAULT 0,
|
||
|
`Is_DST` tinyint(3) unsigned NOT NULL DEFAULT 0,
|
||
|
`Abbreviation` char(8) NOT NULL DEFAULT '',
|
||
|
PRIMARY KEY (`Time_zone_id`,`Transition_type_id`)
|
||
|
) ENGINE=Aria DEFAULT CHARSET=utf8 PAGE_CHECKSUM=1 TRANSACTIONAL=1 COMMENT='Time zone transition types';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Dumping data for table `time_zone_transition_type`
|
||
|
--
|
||
|
|
||
|
LOCK TABLES `time_zone_transition_type` WRITE;
|
||
|
/*!40000 ALTER TABLE `time_zone_transition_type` DISABLE KEYS */;
|
||
|
/*!40000 ALTER TABLE `time_zone_transition_type` ENABLE KEYS */;
|
||
|
UNLOCK TABLES;
|
||
|
|
||
|
--
|
||
|
-- Temporary table structure for view `user`
|
||
|
--
|
||
|
|
||
|
DROP TABLE IF EXISTS `user`;
|
||
|
/*!50001 DROP VIEW IF EXISTS `user`*/;
|
||
|
SET @saved_cs_client = @@character_set_client;
|
||
|
SET character_set_client = utf8;
|
||
|
/*!50001 CREATE TABLE `user` (
|
||
|
`Host` tinyint NOT NULL,
|
||
|
`User` tinyint NOT NULL,
|
||
|
`Password` tinyint NOT NULL,
|
||
|
`Select_priv` tinyint NOT NULL,
|
||
|
`Insert_priv` tinyint NOT NULL,
|
||
|
`Update_priv` tinyint NOT NULL,
|
||
|
`Delete_priv` tinyint NOT NULL,
|
||
|
`Create_priv` tinyint NOT NULL,
|
||
|
`Drop_priv` tinyint NOT NULL,
|
||
|
`Reload_priv` tinyint NOT NULL,
|
||
|
`Shutdown_priv` tinyint NOT NULL,
|
||
|
`Process_priv` tinyint NOT NULL,
|
||
|
`File_priv` tinyint NOT NULL,
|
||
|
`Grant_priv` tinyint NOT NULL,
|
||
|
`References_priv` tinyint NOT NULL,
|
||
|
`Index_priv` tinyint NOT NULL,
|
||
|
`Alter_priv` tinyint NOT NULL,
|
||
|
`Show_db_priv` tinyint NOT NULL,
|
||
|
`Super_priv` tinyint NOT NULL,
|
||
|
`Create_tmp_table_priv` tinyint NOT NULL,
|
||
|
`Lock_tables_priv` tinyint NOT NULL,
|
||
|
`Execute_priv` tinyint NOT NULL,
|
||
|
`Repl_slave_priv` tinyint NOT NULL,
|
||
|
`Repl_client_priv` tinyint NOT NULL,
|
||
|
`Create_view_priv` tinyint NOT NULL,
|
||
|
`Show_view_priv` tinyint NOT NULL,
|
||
|
`Create_routine_priv` tinyint NOT NULL,
|
||
|
`Alter_routine_priv` tinyint NOT NULL,
|
||
|
`Create_user_priv` tinyint NOT NULL,
|
||
|
`Event_priv` tinyint NOT NULL,
|
||
|
`Trigger_priv` tinyint NOT NULL,
|
||
|
`Create_tablespace_priv` tinyint NOT NULL,
|
||
|
`Delete_history_priv` tinyint NOT NULL,
|
||
|
`ssl_type` tinyint NOT NULL,
|
||
|
`ssl_cipher` tinyint NOT NULL,
|
||
|
`x509_issuer` tinyint NOT NULL,
|
||
|
`x509_subject` tinyint NOT NULL,
|
||
|
`max_questions` tinyint NOT NULL,
|
||
|
`max_updates` tinyint NOT NULL,
|
||
|
`max_connections` tinyint NOT NULL,
|
||
|
`max_user_connections` tinyint NOT NULL,
|
||
|
`plugin` tinyint NOT NULL,
|
||
|
`authentication_string` tinyint NOT NULL,
|
||
|
`password_expired` tinyint NOT NULL,
|
||
|
`is_role` tinyint NOT NULL,
|
||
|
`default_role` tinyint NOT NULL,
|
||
|
`max_statement_time` tinyint NOT NULL
|
||
|
) ENGINE=MyISAM */;
|
||
|
SET character_set_client = @saved_cs_client;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `general_log`
|
||
|
--
|
||
|
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE IF NOT EXISTS `general_log` (
|
||
|
`event_time` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
|
||
|
`user_host` mediumtext NOT NULL,
|
||
|
`thread_id` bigint(21) unsigned NOT NULL,
|
||
|
`server_id` int(10) unsigned NOT NULL,
|
||
|
`command_type` varchar(64) NOT NULL,
|
||
|
`argument` mediumtext NOT NULL
|
||
|
) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='General log';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `slow_log`
|
||
|
--
|
||
|
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE IF NOT EXISTS `slow_log` (
|
||
|
`start_time` timestamp(6) NOT NULL DEFAULT current_timestamp(6) ON UPDATE current_timestamp(6),
|
||
|
`user_host` mediumtext NOT NULL,
|
||
|
`query_time` time(6) NOT NULL,
|
||
|
`lock_time` time(6) NOT NULL,
|
||
|
`rows_sent` int(11) NOT NULL,
|
||
|
`rows_examined` int(11) NOT NULL,
|
||
|
`db` varchar(512) NOT NULL,
|
||
|
`last_insert_id` int(11) NOT NULL,
|
||
|
`insert_id` int(11) NOT NULL,
|
||
|
`server_id` int(10) unsigned NOT NULL,
|
||
|
`sql_text` mediumtext NOT NULL,
|
||
|
`thread_id` bigint(21) unsigned NOT NULL,
|
||
|
`rows_affected` int(11) NOT NULL
|
||
|
) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='Slow log';
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Table structure for table `transaction_registry`
|
||
|
--
|
||
|
|
||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!40101 SET character_set_client = utf8 */;
|
||
|
CREATE TABLE IF NOT EXISTS `transaction_registry` (
|
||
|
`transaction_id` bigint(20) unsigned NOT NULL,
|
||
|
`commit_id` bigint(20) unsigned NOT NULL,
|
||
|
`begin_timestamp` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000',
|
||
|
`commit_timestamp` timestamp(6) NOT NULL DEFAULT '0000-00-00 00:00:00.000000',
|
||
|
`isolation_level` enum('READ-UNCOMMITTED','READ-COMMITTED','REPEATABLE-READ','SERIALIZABLE') COLLATE utf8_bin NOT NULL,
|
||
|
PRIMARY KEY (`transaction_id`),
|
||
|
UNIQUE KEY `commit_id` (`commit_id`),
|
||
|
KEY `begin_timestamp` (`begin_timestamp`),
|
||
|
KEY `commit_timestamp` (`commit_timestamp`,`transaction_id`)
|
||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin STATS_PERSISTENT=0;
|
||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||
|
|
||
|
--
|
||
|
-- Final view structure for view `user`
|
||
|
--
|
||
|
|
||
|
/*!50001 DROP TABLE IF EXISTS `user`*/;
|
||
|
/*!50001 DROP VIEW IF EXISTS `user`*/;
|
||
|
/*!50001 SET @saved_cs_client = @@character_set_client */;
|
||
|
/*!50001 SET @saved_cs_results = @@character_set_results */;
|
||
|
/*!50001 SET @saved_col_connection = @@collation_connection */;
|
||
|
/*!50001 SET character_set_client = latin1 */;
|
||
|
/*!50001 SET character_set_results = latin1 */;
|
||
|
/*!50001 SET collation_connection = latin1_swedish_ci */;
|
||
|
/*!50001 CREATE ALGORITHM=UNDEFINED */
|
||
|
/*!50013 DEFINER=`mariadb.sys`@`localhost` SQL SECURITY DEFINER */
|
||
|
/*!50001 VIEW `user` AS select `global_priv`.`Host` AS `Host`,`global_priv`.`User` AS `User`,if(json_value(`global_priv`.`Priv`,'$.plugin') in ('mysql_native_password','mysql_old_password'),ifnull(json_value(`global_priv`.`Priv`,'$.authentication_string'),''),'') AS `Password`,if(json_value(`global_priv`.`Priv`,'$.access') & 1,'Y','N') AS `Select_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 2,'Y','N') AS `Insert_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 4,'Y','N') AS `Update_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 8,'Y','N') AS `Delete_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 16,'Y','N') AS `Create_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 32,'Y','N') AS `Drop_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 64,'Y','N') AS `Reload_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 128,'Y','N') AS `Shutdown_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 256,'Y','N') AS `Process_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 512,'Y','N') AS `File_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 1024,'Y','N') AS `Grant_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 2048,'Y','N') AS `References_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 4096,'Y','N') AS `Index_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 8192,'Y','N') AS `Alter_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 16384,'Y','N') AS `Show_db_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 32768,'Y','N') AS `Super_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 65536,'Y','N') AS `Create_tmp_table_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 131072,'Y','N') AS `Lock_tables_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 262144,'Y','N') AS `Execute_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 524288,'Y','N') AS `Repl_slave_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 1048576,'Y','N') AS `Repl_client_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 2097152,'Y','N') AS `Create_view_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 4194304,'Y','N') AS `Show_view_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 8388608,'Y','N') AS `Create_routine_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 16777216,'Y','N') AS `Alter_routine_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 33554432,'Y','N') AS `Create_user_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 67108864,'Y','N') AS `Event_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 134217728,'Y','N') AS `Trigger_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 268435456,'Y','N') AS `Create_tablespace_priv`,if(json_value(`global_priv`.`Priv`,'$.access') & 536870912,'Y','N') AS `Delete_history_priv`,elt(ifnull(json_value(`global_priv`.`Priv`,'$.ssl_type'),0) + 1,'','ANY','X509','SPECIFIED') AS `ssl_type`,ifnull(json_value(`global_priv`.`Priv`,'$.ssl_cipher'),'') AS `ssl_cipher`,ifnull(json_value(`global_priv`.`Priv`,'$.x509_issuer'),'') AS `x509_issuer`,ifnull(json_value(`global_priv`.`Priv`,'$.x509_subject'),'') AS `x509_subject`,cast(ifnull(json_value(`global_priv`.`Priv`,'$.max_questions'),0) as unsigned) AS `max_questions`,cast(ifnull(json_value(`global_priv`.`Priv`,'$.max_updates'),0) as unsigned) AS `max_updates`,cast(ifnull(json_value(`global_priv`.`Priv`,'$.max_connections'),0) as unsigned) AS `max_connections`,cast(ifnull(json_value(`global_priv`.`Priv`,'$.max_user_connections'),0) as signed) AS `max_user_connections`,ifnull(json_value(`global_priv`.`Priv`,'$.plugin'),'') AS `plugin`,ifnull(json_value(`global_priv`.`Priv`,'$.authentication_string'),'') AS `authentication_string`,'N' AS `password_expired`,elt(ifnull(json_value(`global_priv`.`Priv`,'$.is_role'),0) + 1,'N','Y') AS `is_role`,ifnull(json_value(`global_priv`.`Priv`,'$.default_role'),'') AS `default_role`,cast(ifnull(json_value(`global_priv`.`Priv`,'$.max_statement_time'),0.0) as decimal(12,6)) AS `max_statement_time` from `global_priv` */;
|
||
|
/*!50001 SET character_set_client = @saved_cs_client */;
|
||
|
/*!50001 SET character_set_results = @saved_cs_results */;
|
||
|
/*!50001 SET collation_connection = @saved_col_connection */;
|
||
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
||
|
|
||
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
||
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
||
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
||
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||
|
|
||
|
-- Dump completed on 2020-05-31 20:04:10
|