forked from metin-server/m2dev-server
server init
This commit is contained in:
52
sql/Readme.txt
Normal file
52
sql/Readme.txt
Normal file
@@ -0,0 +1,52 @@
|
||||
1.: my.cnf sql_mode & bind-address:
|
||||
|
||||
It is highly recommended to modify sql_mode to sql_mode=NO_ENGINE_SUBSTITUTION in your
|
||||
/usr/local/etc/mysql/my.cnf (MariaDB 10.6) or /usr/local/my.cnf (MySQL5.6) or you will have DATA TRUNCATED errors.
|
||||
On MariaDB, you'll need the "bind-address = *" line for enabling connection to MySQL from outside the server's local network.
|
||||
If you don't have the my.cnf file, just create it, here's the content what you should put:
|
||||
MariaDB 10.6: https://pastebin.com/ps9ZyX4U
|
||||
MySQL 5.6: https://pastebin.com/xNsP6pVA
|
||||
(These example files also provided in this zip.)
|
||||
|
||||
2.: Create a user for the serverfile:
|
||||
|
||||
You have to create a metin2@localhost MySQL user with every Server Priviliges in order to make the serverfile work.
|
||||
For password use the word "password" or you can change the password in CONFIG files and use your own password.
|
||||
|
||||
a.) You can create this user in navicat -> user -> new user
|
||||
Fill the username (metin2), the host (localhost), and the password (password) then on Server Priviliges tab tick everything and click Save.
|
||||
|
||||
b.) Or you can create it in the FreeBSD console:
|
||||
mysql -u root -p
|
||||
(It will ask for your local root password, if it's empty then just press enter)
|
||||
CREATE USER 'metin2'@'localhost' IDENTIFIED BY 'password';
|
||||
GRANT ALL PRIVILEGES ON *.* TO 'metin2'@'localhost' WITH GRANT OPTION;
|
||||
FLUSH PRIVILEGES;
|
||||
|
||||
If you want a remote user (like root@% or somebody@%), you can create it the same way:
|
||||
mysql -u root -p
|
||||
CREATE USER 'root'@'%' IDENTIFIED BY '123456789';
|
||||
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
|
||||
FLUSH PRIVILEGES;
|
||||
|
||||
3.: How to import the databases:
|
||||
|
||||
a.) You can import them in the FreeBSD console: (preferred way)
|
||||
mysql -u root -p
|
||||
(It will ask for your local root password, if it's empty then just press enter)
|
||||
CREATE DATABASE account;
|
||||
CREATE DATABASE common;
|
||||
CREATE DATABASE player;
|
||||
CREATE DATABASE log;
|
||||
CREATE DATABASE hotbackup;
|
||||
exit
|
||||
(Yes, don't forget hotbackup, it's needed even if empty..)
|
||||
|
||||
Then import upload the .sqls to the server and import them:
|
||||
mysql -u root -p account < /path/to/sql/account.sql
|
||||
mysql -u root -p common < /path/to/sql/common.sql
|
||||
mysql -u root -p player < /path/to/sql/player.sql
|
||||
mysql -u root -p log < /path/to/sql/log.sql
|
||||
(It will ask for your local root password, if it's empty then just press enter)
|
||||
|
||||
b.) Or use navicat: right click to the connection -> new database, once you created then right click to it -> execute sql file and select the .sql file.
|
||||
233
sql/account.sql
Normal file
233
sql/account.sql
Normal file
@@ -0,0 +1,233 @@
|
||||
-- MariaDB dump 10.19 Distrib 10.6.21-MariaDB, for FreeBSD13.4 (i386)
|
||||
--
|
||||
-- Host: localhost Database: account
|
||||
-- ------------------------------------------------------
|
||||
-- Server version 10.6.21-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 `account`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `account`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `account` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`login` varchar(30) NOT NULL DEFAULT '',
|
||||
`password` varchar(45) NOT NULL DEFAULT '',
|
||||
`social_id` varchar(13) NOT NULL DEFAULT '',
|
||||
`email` varchar(64) NOT NULL DEFAULT '',
|
||||
`create_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`is_testor` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`status` varchar(8) NOT NULL DEFAULT 'OK',
|
||||
`securitycode` varchar(192) DEFAULT '',
|
||||
`newsletter` tinyint(1) DEFAULT 0,
|
||||
`empire` tinyint(4) NOT NULL DEFAULT 0,
|
||||
`name_checked` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`availDt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`mileage` int(11) NOT NULL DEFAULT 0,
|
||||
`cash` int(11) NOT NULL DEFAULT 0,
|
||||
`gold_expire` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`silver_expire` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`safebox_expire` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`autoloot_expire` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`fish_mind_expire` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`marriage_fast_expire` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`money_drop_rate_expire` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`total_cash` int(11) NOT NULL DEFAULT 0,
|
||||
`total_mileage` int(11) NOT NULL DEFAULT 0,
|
||||
`channel_company` varchar(30) NOT NULL DEFAULT '',
|
||||
`ip` varchar(255) DEFAULT NULL,
|
||||
`last_play` datetime NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `login` (`login`) USING BTREE,
|
||||
KEY `social_id` (`social_id`) USING BTREE
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=ascii COLLATE=ascii_general_ci ROW_FORMAT=DYNAMIC;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `account`
|
||||
--
|
||||
|
||||
LOCK TABLES `account` WRITE;
|
||||
/*!40000 ALTER TABLE `account` DISABLE KEYS */;
|
||||
INSERT INTO `account` VALUES (1,'admin','*CC67043C7BCFF5EEA5566BD9B1F3C74FD9A5CF5D','1234567','','0000-00-00 00:00:00',0,'OK','',0,0,0,'0000-00-00 00:00:00',0,1650,'0000-00-00 00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'',NULL,'2021-11-21 20:10:46'),(2,'test','*CC67043C7BCFF5EEA5566BD9B1F3C74FD9A5CF5D','1234567','','0000-00-00 00:00:00',0,'OK','',0,0,0,'0000-00-00 00:00:00',0,0,'0000-00-00 00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00','0000-00-00 00:00:00',0,0,'',NULL,'2021-08-06 11:42:12');
|
||||
/*!40000 ALTER TABLE `account` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `block_exception`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `block_exception`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `block_exception` (
|
||||
`login` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=big5 COLLATE=big5_chinese_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `block_exception`
|
||||
--
|
||||
|
||||
LOCK TABLES `block_exception` WRITE;
|
||||
/*!40000 ALTER TABLE `block_exception` DISABLE KEYS */;
|
||||
INSERT INTO `block_exception` VALUES (100);
|
||||
/*!40000 ALTER TABLE `block_exception` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `gametime`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `gametime`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `gametime` (
|
||||
`UserID` varchar(50) NOT NULL DEFAULT '',
|
||||
`paymenttype` tinyint(2) NOT NULL DEFAULT 1,
|
||||
`LimitTime` int(11) DEFAULT 0,
|
||||
`LimitDt` datetime DEFAULT '1990-01-01 00:00:00',
|
||||
`Scores` int(11) DEFAULT 0,
|
||||
PRIMARY KEY (`UserID`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=euckr COLLATE=euckr_korean_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `gametime`
|
||||
--
|
||||
|
||||
LOCK TABLES `gametime` WRITE;
|
||||
/*!40000 ALTER TABLE `gametime` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `gametime` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `gametimeip`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `gametimeip`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `gametimeip` (
|
||||
`ipid` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(128) DEFAULT NULL,
|
||||
`ip` varchar(11) NOT NULL DEFAULT '000.000.000',
|
||||
`startIP` int(11) NOT NULL DEFAULT 0,
|
||||
`endIP` int(11) NOT NULL DEFAULT 255,
|
||||
`paymenttype` tinyint(2) NOT NULL DEFAULT 1,
|
||||
`LimitTime` int(11) NOT NULL DEFAULT 0,
|
||||
`LimitDt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`readme` varchar(128) DEFAULT NULL,
|
||||
PRIMARY KEY (`ipid`),
|
||||
UNIQUE KEY `ip_uniq` (`ip`,`startIP`,`endIP`),
|
||||
KEY `ip_idx` (`ip`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=euckr COLLATE=euckr_korean_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `gametimeip`
|
||||
--
|
||||
|
||||
LOCK TABLES `gametimeip` WRITE;
|
||||
/*!40000 ALTER TABLE `gametimeip` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `gametimeip` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `gametimelog`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `gametimelog`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `gametimelog` (
|
||||
`login` varchar(16) DEFAULT NULL,
|
||||
`type` enum('IP_FREE','FREE','IP_TIME','IP_DAY','TIME','DAY') DEFAULT NULL,
|
||||
`logon_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`logout_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`use_time` int(11) DEFAULT NULL,
|
||||
`ip` varchar(15) NOT NULL DEFAULT '000.000.000.000',
|
||||
`server` varchar(32) NOT NULL DEFAULT '',
|
||||
KEY `login_key` (`login`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=gb2312 COLLATE=gb2312_chinese_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `gametimelog`
|
||||
--
|
||||
|
||||
LOCK TABLES `gametimelog` WRITE;
|
||||
/*!40000 ALTER TABLE `gametimelog` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `gametimelog` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `iptocountry`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `iptocountry`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `iptocountry` (
|
||||
`IP_FROM` varchar(16) DEFAULT NULL,
|
||||
`IP_TO` varchar(16) DEFAULT NULL,
|
||||
`COUNTRY_NAME` varchar(16) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=big5 COLLATE=big5_chinese_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `iptocountry`
|
||||
--
|
||||
|
||||
LOCK TABLES `iptocountry` WRITE;
|
||||
/*!40000 ALTER TABLE `iptocountry` DISABLE KEYS */;
|
||||
INSERT INTO `iptocountry` VALUES ('','','');
|
||||
/*!40000 ALTER TABLE `iptocountry` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `string`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `string`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `string` (
|
||||
`name` varchar(64) NOT NULL DEFAULT '',
|
||||
`text` text DEFAULT NULL,
|
||||
PRIMARY KEY (`name`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `string`
|
||||
--
|
||||
|
||||
LOCK TABLES `string` WRITE;
|
||||
/*!40000 ALTER TABLE `string` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `string` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
/*!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 2025-03-31 23:50:09
|
||||
125
sql/common.sql
Normal file
125
sql/common.sql
Normal file
@@ -0,0 +1,125 @@
|
||||
-- MariaDB dump 10.19 Distrib 10.6.21-MariaDB, for FreeBSD13.4 (i386)
|
||||
--
|
||||
-- Host: localhost Database: common
|
||||
-- ------------------------------------------------------
|
||||
-- Server version 10.6.21-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 `gmhost`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `gmhost`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `gmhost` (
|
||||
`mIP` varchar(16) NOT NULL DEFAULT ''
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `gmhost`
|
||||
--
|
||||
|
||||
LOCK TABLES `gmhost` WRITE;
|
||||
/*!40000 ALTER TABLE `gmhost` DISABLE KEYS */;
|
||||
INSERT INTO `gmhost` VALUES ('*.*.*.*');
|
||||
/*!40000 ALTER TABLE `gmhost` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `gmlist`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `gmlist`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `gmlist` (
|
||||
`mID` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`mAccount` varchar(32) NOT NULL DEFAULT '',
|
||||
`mName` varchar(32) NOT NULL DEFAULT '',
|
||||
`mContactIP` varchar(16) NOT NULL DEFAULT '',
|
||||
`mServerIP` varchar(16) NOT NULL DEFAULT 'ALL',
|
||||
`mAuthority` enum('IMPLEMENTOR','HIGH_WIZARD','GOD','LOW_WIZARD','PLAYER') DEFAULT 'PLAYER',
|
||||
PRIMARY KEY (`mID`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `gmlist`
|
||||
--
|
||||
|
||||
LOCK TABLES `gmlist` WRITE;
|
||||
/*!40000 ALTER TABLE `gmlist` DISABLE KEYS */;
|
||||
INSERT INTO `gmlist` VALUES (1,'admin','[SA]Admin','','ALL','IMPLEMENTOR');
|
||||
/*!40000 ALTER TABLE `gmlist` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `locale`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `locale`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `locale` (
|
||||
`mKey` varchar(255) NOT NULL DEFAULT '',
|
||||
`mValue` varchar(255) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`mKey`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `locale`
|
||||
--
|
||||
|
||||
LOCK TABLES `locale` WRITE;
|
||||
/*!40000 ALTER TABLE `locale` DISABLE KEYS */;
|
||||
INSERT INTO `locale` VALUES ('LOCALE','english'),('DB_NAME_COLUMN','locale_name'),('SKILL_POWER_BY_LEVEL_TYPE0','0 5 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 50 52 54 56 58 60 63 66 69 72 82 85 88 91 94 98 102 106 110 115 125 125 125 125 125'),('SKILL_POWER_BY_LEVEL_TYPE1','0 5 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 50 52 54 56 58 60 63 66 69 72 82 85 88 91 94 98 102 106 110 115 125 125 125 125 125'),('SKILL_POWER_BY_LEVEL_TYPE2','0 5 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 50 52 54 56 58 60 63 66 69 72 82 85 88 91 94 98 102 106 110 115 125 125 125 125 125'),('SKILL_POWER_BY_LEVEL_TYPE3','0 5 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 50 52 54 56 58 60 63 66 69 72 82 85 88 91 94 98 102 106 110 115 125 125 125 125 125'),('SKILL_POWER_BY_LEVEL_TYPE4','0 5 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 50 52 54 56 58 60 63 66 69 72 82 85 88 91 94 98 102 106 110 115 125 125 125 125 125'),('SKILL_POWER_BY_LEVEL_TYPE5','0 5 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 50 52 54 56 58 60 63 66 69 72 82 85 88 91 94 98 102 106 110 115 125 125 125 125 125'),('SKILL_POWER_BY_LEVEL_TYPE6','0 5 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 50 52 54 56 58 60 63 66 69 72 82 85 88 91 94 98 102 106 110 115 125 125 125 125 125'),('SKILL_POWER_BY_LEVEL_TYPE7','0 5 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 50 52 54 56 58 60 63 66 69 72 82 85 88 91 94 98 102 106 110 115 125 125 125 125 125'),('SKILL_DAMAGE_BY_LEVEL_UNDER_90','0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0'),('SKILL_DAMAGE_BY_LEVEL_UNDER_45','0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0'),('SKILL_POWER_BY_LEVEL','0 5 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 50 52 54 56 58 60 63 66 69 72 82 85 88 91 94 98 102 106 110 115 125 125 125 125 125');
|
||||
/*!40000 ALTER TABLE `locale` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `spam_db`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `spam_db`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `spam_db` (
|
||||
`type` set('GOOD','SPAM') NOT NULL DEFAULT 'SPAM',
|
||||
`word` varchar(256) NOT NULL,
|
||||
`score` int(11) NOT NULL DEFAULT 10,
|
||||
PRIMARY KEY (`word`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `spam_db`
|
||||
--
|
||||
|
||||
LOCK TABLES `spam_db` WRITE;
|
||||
/*!40000 ALTER TABLE `spam_db` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `spam_db` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
/*!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 2025-03-31 23:50:20
|
||||
27
sql/hotbackup_(empty).sql
Normal file
27
sql/hotbackup_(empty).sql
Normal file
@@ -0,0 +1,27 @@
|
||||
-- MariaDB dump 10.19 Distrib 10.6.21-MariaDB, for FreeBSD13.4 (i386)
|
||||
--
|
||||
-- Host: localhost Database: hotbackup
|
||||
-- ------------------------------------------------------
|
||||
-- Server version 10.6.21-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 */;
|
||||
/*!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 2025-03-31 23:50:46
|
||||
603
sql/log.sql
Normal file
603
sql/log.sql
Normal file
@@ -0,0 +1,603 @@
|
||||
-- MariaDB dump 10.19 Distrib 10.6.21-MariaDB, for FreeBSD13.4 (i386)
|
||||
--
|
||||
-- Host: localhost Database: log
|
||||
-- ------------------------------------------------------
|
||||
-- Server version 10.6.21-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 `bootlog`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `bootlog`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `bootlog` (
|
||||
`time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`hostname` char(128) NOT NULL DEFAULT 'UNKNOWN',
|
||||
`channel` tinyint(1) NOT NULL DEFAULT 0
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=big5 COLLATE=big5_chinese_ci ROW_FORMAT=FIXED;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `bootlog`
|
||||
--
|
||||
|
||||
LOCK TABLES `bootlog` WRITE;
|
||||
/*!40000 ALTER TABLE `bootlog` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `bootlog` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `change_name`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `change_name`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `change_name` (
|
||||
`pid` int(11) DEFAULT NULL,
|
||||
`old_name` varchar(255) DEFAULT NULL,
|
||||
`new_name` varchar(255) DEFAULT NULL,
|
||||
`time` datetime DEFAULT NULL,
|
||||
`ip` varchar(20) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `change_name`
|
||||
--
|
||||
|
||||
LOCK TABLES `change_name` WRITE;
|
||||
/*!40000 ALTER TABLE `change_name` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `change_name` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `command_log`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `command_log`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `command_log` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`userid` int(11) NOT NULL DEFAULT 0,
|
||||
`server` int(11) NOT NULL DEFAULT 0,
|
||||
`ip` varchar(15) NOT NULL DEFAULT '',
|
||||
`port` int(6) NOT NULL DEFAULT 0,
|
||||
`username` varchar(50) NOT NULL DEFAULT '',
|
||||
`command` text NOT NULL,
|
||||
`date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `command_log`
|
||||
--
|
||||
|
||||
LOCK TABLES `command_log` WRITE;
|
||||
/*!40000 ALTER TABLE `command_log` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `command_log` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `cube`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `cube`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `cube` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`pid` int(11) unsigned NOT NULL DEFAULT 0,
|
||||
`time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`x` int(11) unsigned NOT NULL DEFAULT 0,
|
||||
`y` int(11) unsigned NOT NULL DEFAULT 0,
|
||||
`item_vnum` int(11) unsigned NOT NULL DEFAULT 0,
|
||||
`item_uid` int(11) unsigned NOT NULL DEFAULT 0,
|
||||
`item_count` int(5) unsigned NOT NULL DEFAULT 0,
|
||||
`success` tinyint(1) NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `pid` (`pid`) USING BTREE,
|
||||
KEY `item_vnum` (`item_vnum`) USING BTREE,
|
||||
KEY `item_uid` (`item_uid`) USING BTREE
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=big5 COLLATE=big5_chinese_ci ROW_FORMAT=FIXED;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `cube`
|
||||
--
|
||||
|
||||
LOCK TABLES `cube` WRITE;
|
||||
/*!40000 ALTER TABLE `cube` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `cube` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `dragon_slay_log`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `dragon_slay_log`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `dragon_slay_log` (
|
||||
`guild_id` int(11) unsigned NOT NULL,
|
||||
`vnum` int(11) unsigned NOT NULL,
|
||||
`start_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`end_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=FIXED;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `dragon_slay_log`
|
||||
--
|
||||
|
||||
LOCK TABLES `dragon_slay_log` WRITE;
|
||||
/*!40000 ALTER TABLE `dragon_slay_log` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `dragon_slay_log` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `fish_log`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `fish_log`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `fish_log` (
|
||||
`time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`player_id` int(10) unsigned NOT NULL DEFAULT 0,
|
||||
`map_index` tinyint(4) NOT NULL DEFAULT 0,
|
||||
`fish_id` int(10) unsigned NOT NULL DEFAULT 0,
|
||||
`fishing_level` int(11) NOT NULL DEFAULT 0,
|
||||
`waiting_time` int(11) NOT NULL DEFAULT 0,
|
||||
`success` tinyint(4) NOT NULL DEFAULT 0,
|
||||
`size` smallint(6) NOT NULL DEFAULT 0
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=big5 COLLATE=big5_chinese_ci ROW_FORMAT=FIXED;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `fish_log`
|
||||
--
|
||||
|
||||
LOCK TABLES `fish_log` WRITE;
|
||||
/*!40000 ALTER TABLE `fish_log` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `fish_log` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `goldlog`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `goldlog`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `goldlog` (
|
||||
`date` varchar(10) NOT NULL DEFAULT '0000-00-00',
|
||||
`time` varchar(8) NOT NULL DEFAULT '00:00:00',
|
||||
`pid` int(10) unsigned NOT NULL DEFAULT 0,
|
||||
`what` int(11) NOT NULL DEFAULT 0,
|
||||
`how` set('BUY','SELL','SHOP_SELL','SHOP_BUY','EXCHANGE_TAKE','EXCHANGE_GIVE','QUEST') DEFAULT NULL,
|
||||
`hint` varchar(50) DEFAULT NULL,
|
||||
KEY `date_idx` (`date`) USING BTREE,
|
||||
KEY `pid_idx` (`pid`) USING BTREE,
|
||||
KEY `what_idx` (`what`) USING BTREE,
|
||||
KEY `how_idx` (`how`) USING BTREE
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=big5 COLLATE=big5_chinese_ci ROW_FORMAT=DYNAMIC;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `goldlog`
|
||||
--
|
||||
|
||||
LOCK TABLES `goldlog` WRITE;
|
||||
/*!40000 ALTER TABLE `goldlog` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `goldlog` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `hack_crc_log`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `hack_crc_log`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `hack_crc_log` (
|
||||
`time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`login` char(16) NOT NULL DEFAULT '',
|
||||
`name` char(24) NOT NULL DEFAULT '',
|
||||
`ip` char(15) NOT NULL DEFAULT '',
|
||||
`server` char(100) NOT NULL DEFAULT '',
|
||||
`why` char(255) NOT NULL DEFAULT '',
|
||||
`crc` int(11) NOT NULL DEFAULT 0
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=big5 COLLATE=big5_chinese_ci ROW_FORMAT=FIXED;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `hack_crc_log`
|
||||
--
|
||||
|
||||
LOCK TABLES `hack_crc_log` WRITE;
|
||||
/*!40000 ALTER TABLE `hack_crc_log` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `hack_crc_log` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `hack_log`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `hack_log`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `hack_log` (
|
||||
`time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`login` char(16) NOT NULL DEFAULT '',
|
||||
`name` char(24) NOT NULL DEFAULT '',
|
||||
`ip` char(15) NOT NULL DEFAULT '',
|
||||
`server` char(100) NOT NULL DEFAULT '',
|
||||
`why` char(255) NOT NULL DEFAULT ''
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=big5 COLLATE=big5_chinese_ci ROW_FORMAT=FIXED;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `hack_log`
|
||||
--
|
||||
|
||||
LOCK TABLES `hack_log` WRITE;
|
||||
/*!40000 ALTER TABLE `hack_log` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `hack_log` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `hackshield_log`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `hackshield_log`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `hackshield_log` (
|
||||
`pid` int(11) unsigned NOT NULL DEFAULT 0,
|
||||
`login` varchar(32) DEFAULT NULL,
|
||||
`account_id` int(11) unsigned NOT NULL,
|
||||
`name` varchar(25) DEFAULT NULL,
|
||||
`time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`reason` varchar(25) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `hackshield_log`
|
||||
--
|
||||
|
||||
LOCK TABLES `hackshield_log` WRITE;
|
||||
/*!40000 ALTER TABLE `hackshield_log` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `hackshield_log` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `levellog`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `levellog`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `levellog` (
|
||||
`name` char(24) NOT NULL DEFAULT '',
|
||||
`level` tinyint(4) NOT NULL DEFAULT 0,
|
||||
`time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`playtime` int(11) NOT NULL DEFAULT 0,
|
||||
`account_id` int(11) NOT NULL,
|
||||
`pid` int(11) NOT NULL,
|
||||
PRIMARY KEY (`name`,`level`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=big5 COLLATE=big5_chinese_ci ROW_FORMAT=FIXED;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `levellog`
|
||||
--
|
||||
|
||||
LOCK TABLES `levellog` WRITE;
|
||||
/*!40000 ALTER TABLE `levellog` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `levellog` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `log`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `log`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `log` (
|
||||
`type` enum('ITEM','CHARACTER') NOT NULL DEFAULT 'ITEM',
|
||||
`time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`who` int(10) unsigned NOT NULL DEFAULT 0,
|
||||
`x` int(10) unsigned NOT NULL DEFAULT 0,
|
||||
`y` int(10) unsigned NOT NULL DEFAULT 0,
|
||||
`what` int(11) NOT NULL DEFAULT 0,
|
||||
`how` varchar(50) NOT NULL DEFAULT '',
|
||||
`hint` varchar(70) DEFAULT NULL,
|
||||
`ip` varchar(20) DEFAULT NULL,
|
||||
`vnum` int(11) DEFAULT NULL,
|
||||
KEY `who_idx` (`who`) USING BTREE,
|
||||
KEY `what_idx` (`what`) USING BTREE,
|
||||
KEY `how_idx` (`how`) USING BTREE
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=big5 COLLATE=big5_chinese_ci ROW_FORMAT=DYNAMIC;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `log`
|
||||
--
|
||||
|
||||
LOCK TABLES `log` WRITE;
|
||||
/*!40000 ALTER TABLE `log` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `log` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `loginlog`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `loginlog`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `loginlog` (
|
||||
`type` enum('LOGIN','LOGOUT') DEFAULT NULL,
|
||||
`time` datetime DEFAULT NULL,
|
||||
`channel` tinyint(4) DEFAULT NULL,
|
||||
`account_id` int(10) unsigned DEFAULT NULL,
|
||||
`pid` int(10) unsigned DEFAULT NULL,
|
||||
`level` smallint(6) DEFAULT NULL,
|
||||
`job` tinyint(4) DEFAULT NULL,
|
||||
`playtime` int(10) unsigned DEFAULT NULL,
|
||||
KEY `pid` (`pid`,`type`) USING BTREE
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=big5 COLLATE=big5_chinese_ci ROW_FORMAT=FIXED;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `loginlog`
|
||||
--
|
||||
|
||||
LOCK TABLES `loginlog` WRITE;
|
||||
/*!40000 ALTER TABLE `loginlog` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `loginlog` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `loginlog2`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `loginlog2`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `loginlog2` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`type` text DEFAULT NULL,
|
||||
`is_gm` int(11) DEFAULT NULL,
|
||||
`login_time` datetime DEFAULT NULL,
|
||||
`channel` int(11) DEFAULT NULL,
|
||||
`account_id` int(11) DEFAULT NULL,
|
||||
`pid` int(11) DEFAULT NULL,
|
||||
`client_version` text DEFAULT NULL,
|
||||
`ip` text DEFAULT NULL,
|
||||
`logout_time` datetime DEFAULT NULL,
|
||||
`playtime` int(11) NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `loginlog2`
|
||||
--
|
||||
|
||||
LOCK TABLES `loginlog2` WRITE;
|
||||
/*!40000 ALTER TABLE `loginlog2` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `loginlog2` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `money_log`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `money_log`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `money_log` (
|
||||
`time` datetime DEFAULT NULL,
|
||||
`type` enum('MONSTER','SHOP','REFINE','QUEST','GUILD','MISC','KILL','DROP') DEFAULT NULL,
|
||||
`vnum` int(11) NOT NULL DEFAULT 0,
|
||||
`gold` int(11) NOT NULL DEFAULT 0,
|
||||
KEY `type` (`type`,`vnum`) USING BTREE
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=big5 COLLATE=big5_chinese_ci ROW_FORMAT=FIXED;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `money_log`
|
||||
--
|
||||
|
||||
LOCK TABLES `money_log` WRITE;
|
||||
/*!40000 ALTER TABLE `money_log` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `money_log` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `pcbang_loginlog`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `pcbang_loginlog`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `pcbang_loginlog` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`time` datetime DEFAULT NULL,
|
||||
`pcbang_id` int(11) NOT NULL DEFAULT 0,
|
||||
`ip` varchar(15) NOT NULL DEFAULT '000.000.000.000',
|
||||
`pid` int(10) unsigned DEFAULT NULL,
|
||||
`play_time` int(10) unsigned DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `pid` (`pid`) USING BTREE,
|
||||
KEY `pcbang_id` (`pcbang_id`) USING BTREE
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=big5 COLLATE=big5_chinese_ci ROW_FORMAT=DYNAMIC;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `pcbang_loginlog`
|
||||
--
|
||||
|
||||
LOCK TABLES `pcbang_loginlog` WRITE;
|
||||
/*!40000 ALTER TABLE `pcbang_loginlog` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `pcbang_loginlog` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `playercount`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `playercount`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `playercount` (
|
||||
`date` datetime DEFAULT NULL,
|
||||
`count_red` int(11) DEFAULT NULL,
|
||||
`count_yellow` int(11) DEFAULT NULL,
|
||||
`count_blue` int(11) DEFAULT NULL,
|
||||
`count_total` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=FIXED;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `playercount`
|
||||
--
|
||||
|
||||
LOCK TABLES `playercount` WRITE;
|
||||
/*!40000 ALTER TABLE `playercount` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `playercount` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `quest_reward_log`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `quest_reward_log`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `quest_reward_log` (
|
||||
`quest_name` varchar(32) DEFAULT NULL,
|
||||
`player_id` int(10) unsigned DEFAULT NULL,
|
||||
`player_level` tinyint(4) DEFAULT NULL,
|
||||
`reward_type` enum('EXP','ITEM') DEFAULT NULL,
|
||||
`reward_value1` int(10) unsigned DEFAULT NULL,
|
||||
`reward_value2` int(11) DEFAULT NULL,
|
||||
`time` datetime DEFAULT NULL,
|
||||
KEY `player_id` (`player_id`) USING BTREE
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=big5 COLLATE=big5_chinese_ci ROW_FORMAT=DYNAMIC;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `quest_reward_log`
|
||||
--
|
||||
|
||||
LOCK TABLES `quest_reward_log` WRITE;
|
||||
/*!40000 ALTER TABLE `quest_reward_log` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `quest_reward_log` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `refinelog`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `refinelog`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `refinelog` (
|
||||
`pid` int(10) unsigned DEFAULT NULL,
|
||||
`item_name` varchar(24) NOT NULL DEFAULT '',
|
||||
`item_id` int(11) NOT NULL DEFAULT 0,
|
||||
`step` varchar(50) NOT NULL DEFAULT '',
|
||||
`time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`is_success` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`setType` set('SOCKET','POWER','ROD','GUILD','SCROLL','HYUNIRON','GOD_SCROLL','MUSIN_SCROLL') DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=big5 COLLATE=big5_chinese_ci ROW_FORMAT=DYNAMIC;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `refinelog`
|
||||
--
|
||||
|
||||
LOCK TABLES `refinelog` WRITE;
|
||||
/*!40000 ALTER TABLE `refinelog` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `refinelog` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `shout_log`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `shout_log`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `shout_log` (
|
||||
`time` datetime DEFAULT '0000-00-00 00:00:00',
|
||||
`channel` tinyint(4) DEFAULT NULL,
|
||||
`empire` tinyint(4) DEFAULT NULL,
|
||||
`shout` varchar(350) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL,
|
||||
KEY `time_idx` (`time`) USING BTREE
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=big5 COLLATE=big5_chinese_ci ROW_FORMAT=DYNAMIC;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `shout_log`
|
||||
--
|
||||
|
||||
LOCK TABLES `shout_log` WRITE;
|
||||
/*!40000 ALTER TABLE `shout_log` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `shout_log` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `speed_hack`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `speed_hack`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `speed_hack` (
|
||||
`pid` int(11) DEFAULT NULL,
|
||||
`time` datetime DEFAULT NULL,
|
||||
`x` int(11) DEFAULT NULL,
|
||||
`y` int(11) DEFAULT NULL,
|
||||
`hack_count` varchar(20) CHARACTER SET big5 COLLATE big5_bin DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci ROW_FORMAT=DYNAMIC;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `speed_hack`
|
||||
--
|
||||
|
||||
LOCK TABLES `speed_hack` WRITE;
|
||||
/*!40000 ALTER TABLE `speed_hack` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `speed_hack` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
/*!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 2025-03-31 23:50:28
|
||||
16
sql/my.cnf
Normal file
16
sql/my.cnf
Normal file
@@ -0,0 +1,16 @@
|
||||
#
|
||||
# This group is read both by the client and the server
|
||||
# use it for options that affect everything, see
|
||||
# https://mariadb.com/kb/en/configuring-mariadb-with-option-files/#option-groups
|
||||
#
|
||||
[client-server]
|
||||
port = 3306
|
||||
socket = /var/run/mysql/mysql.sock
|
||||
|
||||
#
|
||||
# include *.cnf from the config directory
|
||||
#
|
||||
!includedir /usr/local/etc/mysql/conf.d/
|
||||
[mysqld]
|
||||
bind-address = *
|
||||
sql_mode = NO_ENGINE_SUBSTITUTION
|
||||
28
sql/my.cnf.bak_for_mysql5.6
Normal file
28
sql/my.cnf.bak_for_mysql5.6
Normal file
@@ -0,0 +1,28 @@
|
||||
# For advice on how to change settings please see
|
||||
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
|
||||
|
||||
[mysqld]
|
||||
|
||||
# Remove leading # and set to the amount of RAM for the most important data
|
||||
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
|
||||
# innodb_buffer_pool_size = 128M
|
||||
|
||||
# Remove leading # to turn on a very important data integrity option: logging
|
||||
# changes to the binary log between backups.
|
||||
# log_bin
|
||||
|
||||
# These are commonly set, remove the # and set as required.
|
||||
# basedir = .....
|
||||
# datadir = .....
|
||||
# port = .....
|
||||
# server_id = .....
|
||||
# socket = .....
|
||||
|
||||
# Remove leading # to set options mainly useful for reporting servers.
|
||||
# The server defaults are faster for transactions and fast SELECTs.
|
||||
# Adjust sizes as needed, experiment to find the optimal values.
|
||||
# join_buffer_size = 128M
|
||||
# sort_buffer_size = 2M
|
||||
# read_rnd_buffer_size = 2M
|
||||
|
||||
sql_mode=NO_ENGINE_SUBSTITUTION
|
||||
1405
sql/player.sql
Normal file
1405
sql/player.sql
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user