reate_ifractions_data_base.sql 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*!999999 - Create Data Base to iFractions with name 'ifractions2 */
  2. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  3. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  4. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  5. /*!40101 SET NAMES utf8mb4 */;
  6. /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  7. /*!40103 SET TIME_ZONE='+00:00' */;
  8. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  9. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  10. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  11. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  12. --
  13. -- Current Database: `db_ifractions`
  14. -- On Linux, create iFractions data base with command:
  15. -- $ mysql -p -u root < reate_ifractions_data_base.sql
  16. --
  17. CREATE DATABASE /*!32312 IF NOT EXISTS*/ `db_ifractions` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci */;
  18. USE `db_ifractions`;
  19. --
  20. -- Table structure for table `ifractions`
  21. --
  22. DROP TABLE IF EXISTS `ifractions`;
  23. /*!40101 SET @saved_cs_client = @@character_set_client */;
  24. /*!40101 SET character_set_client = utf8 */;
  25. CREATE TABLE `ifractions` (
  26. `id` int(11) NOT NULL AUTO_INCREMENT,
  27. `line_hostip` varchar(255) DEFAULT NULL,
  28. `line_playername` varchar(256) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL,
  29. `line_datetime` varchar(20) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL,
  30. `line_lang` varchar(6) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL,
  31. `line_game` varchar(10) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL,
  32. `line_mode` varchar(1) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL,
  33. `line_operator` varchar(5) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL,
  34. `line_level` int(5) NOT NULL,
  35. `line_mappos` int(5) NOT NULL,
  36. `line_result` varchar(6) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL,
  37. `line_time` varchar(20) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL,
  38. `line_details` varchar(120) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL,
  39. PRIMARY KEY (`id`)
  40. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
  41. /*!40101 SET character_set_client = @saved_cs_client */;
  42. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  43. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  44. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  45. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  46. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  47. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  48. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  49. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;