Mysqldump single database with create database sql included

September 10, 2014

mysqldump --add-drop-database --single-transaction -hdatabase_cluster -uexample -ppassword --databases example_database > example.db-full.sql
About me

Hello! I'm David Heward, how are you going? I'm a Senior Devops/Build Engineer, specialising in AWS & Cloud Automation. Based in London. Strong 10+ year background in Software development. Have a read of my blog. Have a look at some of my working projects. Contact me at @davehewy or on Linkedin.