DESCRIBE mysqlowy nie pokazuje całej prawdy.
Zrób może tak:
mysqldump -u uzytkownik_lms --password=haslo_uzytkownika_lms baza_danych_lms logtransactions logmessages logmessagekeys logmessagedata
i wtedy będziesz miał pełne schematy tych tabel.
jeśli chodzi o schemat to wygląta tak:
#v+ -- MySQL dump 10.13 Distrib 5.1.49, for debian-linux-gnu (i486)
-- -- Host: localhost Database: nicraM -- ------------------------------------------------------ -- Server version 5.1.49-3-log
/*!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 */; /*!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 `logtransactions` --
DROP TABLE IF EXISTS `logtransactions`; /*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */; CREATE TABLE `logtransactions` ( `id` int(11) NOT NULL AUTO_INCREMENT, `userid` int(11) NOT NULL DEFAULT '0', `time` int(11) NOT NULL DEFAULT '0',
`module` varchar(50) COLLATE utf8_polish_ci NOT NULL DEFAULT '', PRIMARY KEY (`id`), KEY `userid` (`userid`), KEY `time` (`time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_polish_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
-- -- Dumping data for table `logtransactions` --
LOCK TABLES `logtransactions` WRITE; /*!40000 ALTER TABLE `logtransactions` DISABLE KEYS */;
/*!40000 ALTER TABLE `logtransactions` ENABLE KEYS */; UNLOCK TABLES;
-- -- Table structure for table `logmessages` --
DROP TABLE IF EXISTS `logmessages`; /*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */; CREATE TABLE `logmessages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `transactionid` int(11) NOT NULL, `resource` int(11) NOT NULL DEFAULT '0', `operation` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`), KEY `transactionid` (`transactionid`), KEY `resource` (`resource`), KEY `operation` (`operation`), CONSTRAINT `logmessages_ibfk_1` FOREIGN KEY (`transactionid`) REFERENCES `logtransactions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_polish_ci; /*!40101 SET character_set_client = @saved_cs_client */;
-- -- Dumping data for table `logmessages` --
LOCK TABLES `logmessages` WRITE;
/*!40000 ALTER TABLE `logmessages` DISABLE KEYS */; /*!40000 ALTER TABLE `logmessages` ENABLE KEYS */; UNLOCK TABLES;
-- -- Table structure for table `logmessagekeys` --
DROP TABLE IF EXISTS `logmessagekeys`;
/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `logmessagekeys` ( `logmessageid` int(11) NOT NULL, `name` varchar(32) COLLATE utf8_polish_ci NOT NULL,
`value` int(11) NOT NULL, KEY `logmessageid` (`logmessageid`), KEY `name` (`name`), KEY `value` (`value`), CONSTRAINT `logmessagekeys_ibfk_1` FOREIGN KEY (`logmessageid`) REFERENCES `logmessages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_polish_ci; /*!40101 SET character_set_client = @saved_cs_client */;
-- -- Dumping data for table `logmessagekeys` --
LOCK TABLES `logmessagekeys` WRITE;
/*!40000 ALTER TABLE `logmessagekeys` DISABLE KEYS */; /*!40000 ALTER TABLE `logmessagekeys` ENABLE KEYS */; UNLOCK TABLES;
-- -- Table structure for table `logmessagedata` --
DROP TABLE IF EXISTS `logmessagedata`;
/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `logmessagedata` ( `logmessageid` int(11) NOT NULL, `name` varchar(32) COLLATE utf8_polish_ci NOT NULL,
`value` text COLLATE utf8_polish_ci, KEY `logmessageid` (`logmessageid`), KEY `name` (`name`), CONSTRAINT `logmessagedata_ibfk_1` FOREIGN KEY (`logmessageid`) REFERENCES `logmessages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_polish_ci; /*!40101 SET character_set_client = @saved_cs_client */;
-- -- Dumping data for table `logmessagedata` --
LOCK TABLES `logmessagedata` WRITE;
/*!40000 ALTER TABLE `logmessagedata` DISABLE KEYS */; /*!40000 ALTER TABLE `logmessagedata` 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 */;