然后,我在MySQL中创建了数据库&在php文件(demo1.php)中编写了连接代码,但是它给出了以下错误
警告: mysql_connect() function.mysql-connect:对C:xampp\htdocs\demo1.php中C:\xampp\htdocs\demo1.php中的用户'root'@'localhost‘(使用密码: YES)拒绝访问,连接到mysql时出错。($dbhost, $dbuser, $dbpass) or die (
授予权限、更改密码等...有没有人能帮帮我?SQLite version 3.xdevelopment:# Do not set this db to the same as development or production. adapter: mysqldatabase: survey_develop
at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174) ~[mysql-connector-java:64) ~[mysql-connector-java-8.0.20.jar:8.0.20]
at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:836) ~[mysql-connector-j