Skip to content
Permalink
a8c8a76a08
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
15 lines (11 sloc) 514 Bytes
-- make sure the websiteuser account is set up and has the correct privileges
CREATE USER IF NOT EXISTS websiteuser IDENTIFIED BY 'websitepassword';
GRANT INSERT, SELECT, UPDATE, DELETE ON website.* TO websiteuser;
DROP TABLE IF EXISTS accounts;
CREATE TABLE IF NOT EXISTS accounts (
id MEDIUMINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
user VARCHAR(25) NOT NULL,
pass VARCHAR(70) NOT NULL
);
INSERT INTO accounts(user, pass)
VALUES("doej", "$2b$10$gL33obKAFUT5DK3pEbh72OIHztsWBniBBh.PdeKOrF1yr5KFAsdZO");