Mysql database common commands
MySQL admin login grant privileges # only allow local GRANT ALL PRIVILEGES ON *.* TO 'newuser'@'localhost'; # all ip GRANT ALL PRIVILEGES ON *.* TO 'newuser'@'%'; FLUSH PRIVILEGES; practical usage example grant select on post to scrapy; grant insert on post to scrapy; flush privileges;