Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools Database Foundations Securing and Maintaining a MySQL Database Backing up and Restoring Databases

Robert Ott
PLUS
Robert Ott
Courses Plus Student 4,614 Points

My DB export looks different

These are the first few lines of the dump:

-- MySQL dump 10.13 Distrib 5.6.19, for osx10.7 (i386)

-- Host: localhost Database: treehouse_movie_db


-- Server version 5.6.23

/!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 actors

This is the log file when I performed the dump:

09:41:30 Dumping treehouse_movie_db (all tables) Running: /Applications/MySQLWorkbench.app/Contents/MacOS/mysqldump --defaults-file="/var/folders/np/rtxd2w995j7_k7518r6xd29r0000gn/T/tmptGzDdb/extraparams.cnf" --user=root --host=localhost --protocol=tcp --port=3306 --default-character-set=utf8 --skip-triggers "treehouse_movie_db" 09:41:30 Export of /Users/robertott/dumps/Dump20150205-1.sql has finished

My dump file does not contain the first two lines of Andrew's dump file:

CREATE DATABASE..... USE....

Am I doing something wrong?

Thanks in advance!!

2 Answers

Roberto Alicata
PLUS
Roberto Alicata
Courses Plus Student 39,959 Points

You need to click on the checkbox "Include Create Schema" (it's just before the Start Export button) in the Object Selection Panel.

Chris Komaroff
PLUS
Chris Komaroff
Courses Plus Student 13,672 Points

Thank you, Roberto! I take it this is a change to user interface and instructor is using older version of Workbench.