changeset 218:54cde8e2da5b

Add script to generate the database dump used in tests.
author Daniele Nicolodi <daniele@grinta.net>
date Mon, 21 Nov 2011 16:10:16 +0100
parents 4f5fc5c72aee
children 2a9af8163c46
files src/ltpdarepo/sql/dump.sh
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ltpdarepo/sql/dump.sh	Mon Nov 21 16:10:16 2011 +0100
@@ -0,0 +1,8 @@
+#!/usr/bin/sh
+
+MYSQLDUMP="mysqldump5 -u root"
+
+$MYSQLDUMP --skip-comments --databases mysql --tables \
+    columns_priv db host proc procs_priv tables_priv user
+
+$MYSQLDUMP --skip-comments --databases ltpda db1