First of all, Nicholas, please understand I meant no disrespect to you or your company. I have used your products for years because you are much more helpful than anybody else in this field, and very thorough in your documentation. I appreciate your long and detailed reply. You said some things that gave me some ideas about other things to check. I have worked on the problem some more today, and have managed to get the restore to work on my Windows 10 PC, although following the same steps on my Windows 7 PC produces the same error message as before.
I have attached several screen shots to clarify what I always do. I hope you will look at them as I respectfully reply to some of your suppositions.
Having used XAMPP in the past, I remember that it installs MySQL and Apache as two independent services, set up to start when your computer starts. You need to check that they are both started.
If you will look at the attachment named
XAMPP_CtlPanel_All_Running.png , you will see that I am using the XAMPP Control Panel, with the servers NOT set to be services that automatically start every time I start Windows. Since I do not do web site work every day (far from it!), I manually start this control panel program, and then I click the buttons start the first 3 servers, one at a time: Apache first, then MySQL, the FileZilla. I wait for each one to show that it is in fact in a running state, before I click the button to start the next button. The arrows I added to the screen shot show that the servers are indeed running.
Please note that I am absolutely NOT trying to run the latest version that uses PHP 7. Far from it! In fact, I have the opposite problem: my hosting company is stuck at PHP 5.4.x, so if anything, I am using an older version of XAMPP than I would like.
Finally, IT IS EXTREMELY IMPORTANT to connect the DATABASE USER to the ACTUAL DATABASE you have created. This is a step that even experienced people forget (guilty as charged!). First create the database. Then create the database user. In the next screen it asks you to assign privileges. Remember to assign ALL PRIVILEGES for the new database to this new database user. Otherwise PHP will respond that it cannot connect to MySQL because even though the login to the server works it has no access to the actual database which, from PHP's point of view, is the same as not being able to connect to the server.
If you will look at the attachment named
DatabaseUserAllPrivs.png, you will see that the database user I have set up, named
trim31_dbu_F5u7K , is in fact connected to the database named
trace_imp31_db for my restore. The screen shot shows that I have correctly set this user to have all privileges set.
Based on your statement that wondered whether the database was actually running, I did a Google search for another way to check that. I found this small php script that looked promising:
<?php
$db_host = "localhost";
$db_username = "root";
$db_pass = "";
$db_name = "test";
if(mysql_connect("$db_host","$db_username","$db_pass"))
{echo "connect to MySQL server ".$db_host." with username ".$db_username."<br />";}
else die ("could not connect to mysql");
if(mysql_select_db("$db_name"))
{echo "connect to dtabase ".$db_name;}
else die("no database");
?>
So I copied this
test.php script file to the same dir into which I had copied your Kickstart program, and I ran it (i.e. pointed the browser at it) with various values assigned to those variables at the beginning: $db_host, $db_username, $db_pass, and $db_name .
The original values shown in the code above printed out a 2-line connection message, because the as-installed XAMPP does indeed contain a "test" database and the "root" database user name (which I now understand).
Substituting values into these variables and running the script showed me that:
[*] On my Windows PCs, both "localhost" and "127.0.0.1" seem to work the same, at least insofar as being able to make a database connection.
[*] On my Windows 10 PC, I found that the database name and database password that had failed yesterday, SUCCEEDED today.
[*] Taking advantage of the opportunity, I then pointed my browser at the database view of installation/index.php to see if I could get though the ANGIE database page at this time. YES, I COULD. So I finished the restoration and got my developmental site working on Windows 10.
[*] However, when I tried the same techniques on the installation of the same version of XAMPP on my Windows 7 machine, the correct combination of database name, database user name, and database password always FAILED to make a MySQL connection, no matter what I did
So I appear to have a working development site installation on ONE of the PCs (Windows 10), but NOT on the other PC (Win 7).
Because the two computers are behaving differently, I honestly cannot say that I know WHY it worked on ONE of them. Maybe it's some wierd Windows problem -- dunno.
And I guess I'll have to see if the one on Windows 10 will work tomorrow, or the next day.
I'd feel better if I could get it working on Windows 7, and thus felt that I had a handle on what is going on...
Anyway, thanks again for your detailed reply last night.