I can back up the mysql database through the command line by doing the following:
C: \ MySQL \ MySQL Server 5.0 \ bin \ mysqldump \ "-uroot -ppassword sample> \" D: /admindb/AAR12.sql \ "
But in my .mysql file there are no DROP and CREATE database queries
What should I add to the syntax to get creation information in my generated .sql file?
;
;
;
;
;
;
;
;
;
;
DROP TABLE IF EXISTS `awss_red_force`;
SET @saved_cs_client = @@character_set_client;
SET character_set_client = utf8;
CREATE TABLE `awss_red_force` (
`int_scenario_id` int(11) NOT NULL,
`str_entity_name` varchar(100) default NULL,
`str_hla_type` varchar(30) default NULL,
`str_parent_name` varchar(100) default NULL,
`dbl_x` double default NULL,
`dbl_y` double default NULL,
`dbl_z` double default NULL,
PRIMARY KEY (`int_scenario_id`),
KEY `awss_red_force_ibfk_1` (`int_scenario_id`),
CONSTRAINT `awss_red_force_ibfk_1` FOREIGN KEY (`int_scenario_id`) REFERENCES `scenario` (`int_scenario_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
SET character_set_client = @saved_cs_client;
LOCK TABLES `awss_red_force` WRITE;
;
;
UNLOCK TABLES;
source
share