You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.
# fix illegal byte sequence thrown by sed (on Mac OS)
export LC_CTYPE=C
export LANG=C
mysql -u ${DB_DEV_USER} -p${DB_DEV_PASS} -e "drop database if exists \`hapi-todo\`; create database \`hapi-todo\` CHARACTER SET \`utf8\` COLLATE \`utf8_bin\`; grant all on *.* to ${DB_DEV_USER}@localhost identified by \"${DB_DEV_PASS}\"; grant all privileges on \`hapi-todo\`.* to ${DB_DEV_USER}@localhost;"
mysql -u ${DB_DEV_USER} -p${DB_DEV_PASS} -e "use hapi-todo; create table user (userId int(11) unsigned primary KEY AUTO_INCREMENT, email varchar(255), pass varchar(255), index indexEmail (email asc), index indexPass (pass asc) );"