Localhost connection not working
I have some updating todo on my website.
I wish to carry this out on localhost to enable some testing before reupload.
I downloaded the site files OK and placed these into Dreamweaver.
I exported the database files from the server to this PC and the database is working correctly in Navicat.
When I try to open the index.php page I get the following error.
Can anyone please assist me with this?
Warning: mysql_pconnect(): Access denied for user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\mywebsite April 2018\Connections\conn1.php on line 9
Fatal error: Access denied for user 'root'@'localhost' (using password: YES) in C:\xampp\htdocs\mywebsite April 2018\Connections\conn1.php on line 9
The database opens in Navicat correctly
The connection file is as below
$hostname_conn1 = "localhost";
$database_conn1 = "connectionname april 2018";
$username_conn1 = "root";
$password_conn1 = "mypassword";
$conn1 = mysql_pconnect($hostname_conn1, $username_conn1, $password_conn1) or trigger_error(mysql_error(),E_USER_ERROR);