$ mysql -u XXXXX -pXXXXX db_name
CREATE USER 'user1'@'localhost' IDENTIFIED BY 'pass1';
GRANT ALL ON *.* TO 'user1'@'localhost';
CREATE USER 'user1'@'%' IDENTIFIED BY 'pass1';
GRANT ALL ON *.* TO 'user1'@'%';
select host, user, password, Create_priv from mysql.user;
show databases;
show tables;
ALTER TABLE Article change article_id id bigint(20);
ALTER TABLE Person MODIFY firstName varchar(255) NOT NULL;
ALTER TABLE Person ADD UNIQUE INDEX(memberId);
SELECT table_schema "DB Name", sum(data_length + index_length) / 1024 / 1024 "DB size in MB" FROM information_schema.TABLES GROUP BY table_schema;