Last active
January 2, 2016 23:59
-
-
Save benlieb/8379387 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> DESCRIBE grades; | |
+------------+--------------+------+-----+---------+----------------+ | |
| Field | Type | Null | Key | Default | Extra | | |
+------------+--------------+------+-----+---------+----------------+ | |
| id | int(11) | NO | PRI | NULL | auto_increment | | |
| name | varchar(255) | NO | UNI | NULL | | | |
| position | int(11) | NO | | 0 | | | |
| created_at | datetime | YES | | NULL | | | |
| updated_at | datetime | YES | | NULL | | | |
+------------+--------------+------+-----+---------+----------------+ | |
5 rows in set (0.00 sec) | |
mysql> exit | |
Bye | |
benlieb@bens 05:36 PM ~/my_life/sites/2013/CSEE/apps/csee.org > | |
$ mysqldump csee_development grades --compact --no-data | |
mysqldump: Got error: 1044: Access denied for user ''@'localhost' to database 'csee_development' when selecting the database | |
benlieb@bens 05:36 PM ~/my_life/sites/2013/CSEE/apps/csee.org > | |
$ sudo mysqldump csee_development grades --compact --no-data | |
Password: | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `grades` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`name` varchar(255) NOT NULL, | |
`position` int(11) NOT NULL DEFAULT '0', | |
`created_at` datetime DEFAULT NULL, | |
`updated_at` datetime DEFAULT NULL, | |
PRIMARY KEY (`id`), | |
UNIQUE KEY `index_grades_on_name` (`name`) | |
) ENGINE=MyISAM AUTO_INCREMENT=52 DEFAULT CHARSET=latin1; | |
/*!40101 SET character_set_client = @saved_cs_client */; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment