Setup database
Illuminate\Database\QueryException : SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) (SQL: create TABLE IF not EXISTS users
(
id
INT(11) UNSIGNED AUTO_INCREMENT,
username
VARCHAR(255) UNIQUE not NULL DEFAULT '' COMMENT'账户',
password
VARCHAR(255) not NULL DEFAULT '' COMMENT'密码',
status
TINYINT(1) not NULL DEFAULT 0 COMMENT'账户状态',
level
TINYINT(1) not NULL DEFAULT 0 COMMENT'类型',
plugin
INT(11) not NULL DEFAULT 0 COMMENT'插件',
created_at
DATETIME DEFAULT NULL,
updated_at
DATETIME DEFAULT NULL,
deleted_at
DATETIME DEFAULT NULL,
PRIMARY KEY (id
)
)engine=INNODB DEFAULT CHARSET utf8 COMMENT '用户表';)
at /home/wwwroot/control/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664
660| // If an exception occurs when attempting to run a query, we'll format the error
661| // message to include the bindings with SQL, which will make this exception a
662| // lot more helpful to the developer instead of just the database's errors.
663| catch (Exception $e) {
664| throw new QueryException(
665| $query, $this->prepareBindings($bindings), $e
666| );
667| }
668|
Exception trace:
1 PDOException::("SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES)")
/home/wwwroot/control/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70
2 PDO::__construct("mysql:host=127.0.0.1;port=3306;dbname=control", "root", "123456", [])
/home/wwwroot/control/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70
Please use the argument -v to see more details.
Whoops\Exception\ErrorException : Module 'SourceGuardian' already loaded
at Unknown:0
1|