Updats for sha2

This commit is contained in:
Aaron Johnson 2022-03-26 07:13:10 -05:00
parent 059f487d10
commit ccccf08013
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Create MySQL tables: # Create MySQL tables:
CREATE TABLE pwtool.mypasswd ( CREATE TABLE pwtool.mypasswd (
password VARCHAR(256) NULL, password VARCHAR(256) NULL,
`code` varchar(32) NOT NULL, `code` varchar(64) NOT NULL,
retrieved_ip varchar(39) NULL, retrieved_ip varchar(39) NULL,
retireved_time TIMESTAMP NULL, retireved_time TIMESTAMP NULL,
id BIGINT UNSIGNED auto_increment NOT NULL, id BIGINT UNSIGNED auto_increment NOT NULL,
@ -16,7 +16,7 @@ CREATE INDEX mypasswd_id_IDX USING BTREE ON pwtool.mypasswd (id);
# create user: # create user:
CREATE USER 'pwtool'@'%'; CREATE USER 'pwtool'@'%';
ALTER USER 'pwtool'@'%' ALTER USER 'pwtool'@'%'
IDENTIFIED BY 'BaVYtU9YqMyrp4qi' ; IDENTIFIED BY 'XXX' ;
GRANT Insert ON pwtool.mypasswd TO 'pwtool'@'%'; GRANT Insert ON pwtool.mypasswd TO 'pwtool'@'%';
GRANT Select ON pwtool.mypasswd TO 'pwtool'@'%'; GRANT Select ON pwtool.mypasswd TO 'pwtool'@'%';
GRANT Update ON pwtool.mypasswd TO 'pwtool'@'%'; GRANT Update ON pwtool.mypasswd TO 'pwtool'@'%';