1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!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 utf8 */;
CREATE TABLE IF NOT EXISTS `server` (
`id` int(5) NOT NULL auto_increment,
`uid` int(5) NOT NULL,
`name` varchar(50) NOT NULL,
`port` int(5) NOT NULL,
`maxpl` tinyint(2) NOT NULL,
`dir` varchar(50) NOT NULL,
`rcon` varchar(20) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `uid` (`uid`,`port`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=16 ;
CREATE TABLE IF NOT EXISTS `user` (
`id` int(5) NOT NULL auto_increment,
`username` varchar(20) NOT NULL,
`password` varchar(32) NOT NULL,
`rights` tinyint(2) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
INSERT INTO `user` (`id`, `username`, `password`, `rights`) VALUES
(1, 'administrator', '4293d92b8475dc69654d05f009974d50', 5);