Hi,
I tried to connect to MySql Xampp via PHP but I got this message
Warning: mysqli::mysqli(): (HY000/1045): Access denied for user ‘root’@‘localhost’ (using password: YES) in C:\xampp\htdocs\createDB\index.php on line 15
Notice: Undefined variable: conn in C:\xampp\htdocs\createDB\index.php on line 17
Notice: Trying to get property of non-object in C:\xampp\htdocs\createDB\index.php on line 17
Connection failed:
I search for a solution and I found many people said , password in confing.in.php must to be changed to “root” as example. I change it but I got another .I cannot access to admin page for mySql and I got this message
MySQL said: Documentation
Cannot connect: invalid settings.
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
Can you help me,please?