Skip to content

Instantly share code, notes, and snippets.

@JoseRibeiro
Created August 23, 2012 00:11
Show Gist options
  • Save JoseRibeiro/3430780 to your computer and use it in GitHub Desktop.
Save JoseRibeiro/3430780 to your computer and use it in GitHub Desktop.
Test running in memory engine for MySQL
#!/bin/bash
PASS=root
mysqldump -uroot -p${PASS} --no-data myapp_development | \
sed -e 's/ text/ varchar(255)/' | \
sed -e 's/ENGINE=InnoDB/ENGINE=Memory/' | \
mysql -uroot -p${PASS} myapp_test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment