SQL Statements

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

If you don't want to (or can) import the .

sql file (with demo users) via phpmyad min etc, you can also create the database and the table via these SQL statements: CREATE DATABASE IF NOT EXISTS `login`; CREATE TABLE IF NOT EXISTS `login`.`users` ( `user_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'auto incrementing user_i d of each user, unique index', `user_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL COMMENT 'user''s name ', `user_password_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'us er''s password in salted and hashed format', `user_email` varchar(64) COLLATE utf8_unicode_ci NOT NULL COMMENT 'user''s ema il', PRIMARY KEY (`user_id`), UNIQUE KEY `user_name` (`user_name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='user data' AUTO_INCREMENT=1 ;

You might also like