Browse files


Create script for testing the database's integrity after running
  • Loading branch information...
whotooktwarden committed Aug 5, 2015
1 parent 45b9bfb commit 454539eed78b13107d84b261c3eab33d5db4bc69
Showing with 9 additions and 0 deletions.
  1. +9 −0
@@ -0,0 +1,9 @@
Echo "Testing the database's user table by inserting a test record:";
mysql -D qgk -u qgk_user -pPASSWORD -e "INSERT INTO authors (id,email,ripple) VALUES(1,"","rKYNhsT3aLymkGH7WL7ZUHkm6RE27iuM4C");"
Echo " Testing if the insert was successful by reading the data.";
mysql -u qgk_user -pPASSWORD -D qgk -e "SELECT * FROM users"
Echo "Testing is complete; delete the test record in the users table.";
mysql -u qgk_user -pPASSWORD -D qgk -e "DELETE * FROM users";
Echo "If you receive an error during running this script, first ensure you refactor and this script to reflect your qgk database's password";
Echo "If errors persist, please raise an issue on the qgk git. Please provide as many details as possible and label the issue with the bug tag";

0 comments on commit 454539e

Please sign in to comment.