Unable to connect to the database: root
这里查看db-creds.inc文件下的数据是正确的,phpstudy上数据库用户不能是root,自动取消创建。但是原来界面如图,密码是password
cmd运行
登录MYSQL:mysql -uroot -ppassword -h127.0.0.1
因为security数据库已经存在,所以不必执行create database security;
选中该数据库 use security;
source D:\phpstudy_pro\WWW\sql\sql-connections
成功,哈哈哈