Advertisement
Guest User

Untitled

a guest
Nov 27th, 2016
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. MySQL.yml config:
  2.  
  3. MySQL: true
  4. MySQLSetup:
  5. Host: "localhost"
  6. Username: "yourusername"
  7. Password: "yourpassword"
  8. Database: "yourdatabase"
  9.  
  10.  
  11. Testscript.sk file:
  12.  
  13. on load:
  14. set mysql host to "localhost"
  15. set mysql username to "yourusername"
  16. set mysql password to "yourpassword"
  17. set mysql database to "yourdatabase"
  18. connect to mysql
  19.  
  20. command /createnewtable:
  21. trigger:
  22. mysql update "CREATE TABLE IF NOT EXISTS `Testtable` (`VarName` varchar(255),`VarValue` longtext)"
  23. mysql update "ALTER TABLE `Testtable` ADD UNIQUE (VarName)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement