I want to make a duplicate copy onto my PC of what I have on line.
This is the first part of a very small database dump. For it of course it is no problem to cut and paste the info onto the MySQL monitor and make the database and table. But for larger databases and tables there is a lot of work.
-- MySQL dump 10.10
--
-- Host: localhost Database: ga7503_test
-- ------------------------------------------------------
-- Server version 5.0.27-standard
/*!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 `cars`
--
DROP TABLE IF EXISTS `cars`;
CREATE TABLE `cars` (
`id` int(4) NOT NULL auto_increment,
`date` varchar(4) default NULL,
`category` varchar(30) default NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=37 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `cars`
--
LOCK TABLES `cars` WRITE;
/*!40000 ALTER TABLE `cars` DISABLE KEYS */;
INSERT INTO `cars` (`id`, `date`, `category`) VALUES (1,'1985','000 Ford'),(2,'1995','010 Ranger'),(3,'1995','010 Ranger'),(4,'1986','020 Mustang'),(5,'1986','020 Mustang'),(6,'1986','020 Mustang'),(7,'2006','030 Focus'),(8,'2006','030 Focus'),(9,'2006','030 Focus'),(10,'2006','030 Focus'),(11,'2002','100 Chevrolet'),(12,'1971','110 Camaro'),(13,'1971','110 Camaro'),(14,'1971','110 Camaro'),(15,'1971','110 Camaro'),(16,'1971','120 Corvette'),(17,'1971','120 Corvette'),(18,'1971','120 Corvette'),(19,'1971','120 Corvette'),(20,'1971','120 Corvette'),(21,'1971','120 Corvette'),(22,'1971','120 Corvette'),(23,'1971','120 Corvette'),(24,'1971','120 Corvette'),(25,'1999','130 Impala'),(26,'1999','130 Impala'),(27,'2002','140 Tahoe'),(28,'2002','140 Tahoe'),(29,'2002','140 Tahoe'),(30,'1992','400 Toyota'),(31,'2004','410 Avalon'),(32,'2004','410 Avalon'),(33,'1997','420 Celica'),(34,'2007','430 Tundra'),(35,'2007','430 Tundra'),(36,'2007','430 Tundra');
/*!40000 ALTER TABLE `cars` ENABLE KEYS */;
UNLOCK TABLES;
Is there a command that you can give to have the entire dump file like this read to do each command it contains?