3、配置数据库
开启远程登录:
mysql -u root -p81daa28cb1de0c98
GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1' IDENTIFIED BY '81daa28cb1de0c98' WITH GRANT OPTION;
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '81daa28cb1de0c98' WITH GRANT OPTION;
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '81daa28cb1de0c98' WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit