XAMPP creates a folder called "C:\xampp\htdocs\myfoldername\Connections" which contains a single file called "positivecon.php'. When I try to access my test website, I get this Warning: mysql_pconnect(): Access denied for user 'positivegroup'@'localhost' (using password: YES) in C:\xampp\htdocs\myfoldername\Connections\positivecon.php on line 9
This is the contents of "positivecon.php":
1 <?php
2 # Filename="Connection_php_mysql.htm"
3 # Type="MYSQL"
4 # HTTP="true"
5 $hostname_positivecon = "localhost"
6 $database_positivecon = "positive"
7 $username_positivecon = "positivegroup"
8 $password_positivecon = "mypassword"
9 $positivecon = mysql_pconnect($hostname_positivecon, $username_positivecon, $password_positivecon) or trigger_error(mysql_error(), E_USER_ERROR;
10 ?>
I get this fatal error and cannot proceed with the testing of my website. I have found innumerable articles on the Internet that are almost identical to the contents above -- differing only with some other word instead of "_positivecon".
Is there some way around this difficulty to connect to the database? I have tried removing the "p" in the directive within the text "mysql_pconnect" but to no avail. I simply receive the same fatal error message.
Most frustrating! Some expert guidance would be greatly appreciated.
PAL in Thailand