browsergame.sql 687 B

1234567891011121314151617181920212223242526272829
  1. create user 'browsergame' identified by PASS('browsergamePass');
  2. --
  3. -- Current Database: `browsergame`
  4. --
  5. CREATE DATABASE `browsergame`;
  6. USE `browsergame`;
  7. GRANT ALL privileges on browsergame.* to 'browsergame'@'%' identified by 'browsergamePass';
  8. flush privileges;
  9. --
  10. -- Table structure for table `users`
  11. --
  12. DROP TABLE IF EXISTS `users`;
  13. CREATE TABLE `users` (
  14. `user_id` int(11) NOT NULL AUTO_INCREMENT,
  15. `email` varchar(255) NOT NULL,
  16. `password` varchar(255) NOT NULL,
  17. `registered_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  18. PRIMARY KEY (`user_id`),
  19. KEY `email` (`email`)
  20. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;