Jump to content
Larry Ullman's Book Forums

keriah

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by keriah

  1. After a bit of research I see that I have (at least) 2 PHP installations on my system. There is one that I can start/stop and view via MAMP, and there is another that executes when I run the scripts per the book. So, my best guess is that I wasn't getting the values for 'root' changed in all places.
  2. I had a similar problem but it was with the 'password.php' script of Chapter 9. Larry's reply pointed me to the saved values and I found that 'root' and 'root' were being saved for the localhost URL (ref. Safari->Preferences->Passwords). I deleted just that one Preferences item and got the script to work. However, that raised for me the question of how this particular script's FORM became associated with the remembered values. When I was first trying to prevent 'root' from being populated as a value in the first (email address) field of password's FORM I tried a couple of things, including giving that input field a name other than 'email'. Nothing I tried worked, until I physically deleted the item in Preferences. So, what causes a particular form item to be associated with the saved values, and why was this NOT happening with the relative-same fields in the register script? And, also, is there a was to specify that the form NOT populate from those browser-saved values?
  3. Following the (Mac) steps in the Annex A PDF: I installed MAMP and it was working fine. On p. A9 I did steps 1-4 to assign a password to the root user via phpMyAdmin. (The one difference I noted was that at Step 2 there was a "Users" tab rather than one reading "Privileges".) I clicked to "Edit privileges" for root and typed/confirmed a password (as in Figure C on p A9) and clicked 'Go'. I got a confirmation of the change. I then changed the password value in the config.inc.php file in the phpMyAdmin directory, per Step 5, using Textwrangler to edit the one line where the password value is coded. I saved that file. I stopped both servers using MAMP. I started both servers. Clicking on the "Open start page" button fails with this: Error: Could not connect to MySQL server! And the additional detail: Error message: /Applications/MAMP/Library/bin/mysqlcheck: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect I have Quit everything; I have shut down my system and restarted. I'm still getting this error when I use MAMP. I can edit the config.inc.php to set it back to the default password value, but I'm still locked out because the change in steps 1-4 did work.
×
×
  • Create New...