Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Jqueru course and setting up local server (WAMP)

  • This topic is empty.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #36942
    tobeeornot
    Member

    I’m currently doing a Learn Jquery in 30 days course and have hit a snag. Lesson 25 uses a local server (WAMP/MAMP) to run some dynamic code but after set up I am getting an error message and I am not sure why. I have used this process before to successfully create mock WP sites using Dreamweaver and used the following steps which should apply again, I think:

    1 – Start MAMP. You should see the start up page. Leave it open.
    2 – Create a site root folder for your site in applications/MAMP/htdocs/.
    3 – Define a new site in dreamweaver.
    4 – In “local info” point everything to the folder you created in the htdocs folder. The http address should be this.

    http://localhost:8888/your-site-folder/

    5 – in “remote info” choose Local/Network from the access menu. Point the remote folded to the folder you created in the htdocs folder.
    6 – in “testing server” choose PHP/mySQL under server model, Local/Network from the access menu and testing server to he folder you created in the htdocs folder. The URL prefix should look like this.

    http://localhost:8888/your-site-folder/

    7 – Hit OK then Done.

    I want to set this up locally so please don’t tell me to run it on a live server. I also know most you aren’t DW fans but I am where I am, and would appreciate your help. I can’t go any further on the course until I complete this tutorial.

    #97944
    tobeeornot
    Member

    Hi Karl, thanks for replying. I just checked and the password for the db I created is root, which corresponds to the code in the functions.php page in the exercise files.

    #97951
    tobeeornot
    Member

    Yes, that is the file. I just checked the privileges for the sakila db in phpMyAdmin and they all seem to set to ‘root’, which is the default I think. It is all in lower case as well. Would a screen shot of the phpMyAdmin be any good to you?

    #97953
    tobeeornot
    Member

    Ok, so just to be sure I changed all the passwords for all specified users to ‘root’ and rebooted wamp. No luck.

    Screenshot

    #97956
    tobeeornot
    Member

    Nope – doh! I had a good feeling about that.

    #97959
    tobeeornot
    Member

    like this?


    $pdo = new PDO("mysql:host=127.0.0.1;dbname=sakila", "root", "root");
    $pdo = new PDO("mysql:host=localhost;dbname=sakila", "root", "root");
    #97964
    tobeeornot
    Member

    nope…i reset all the passwords to ‘root’ for the three users and rebooted. No luck.

    Out of interest – have you tried using the exercise files on your end?

    #97966
    tobeeornot
    Member

    from i what i can see, they are essentially saying the same thing – change/reset the user passwords for the database.

    #97969
    tobeeornot
    Member

    Regrettably no. Thanks for your help, man. I don’t want to waste your time…this is driving me mental!

    #97971
    tobeeornot
    Member

    Set all the passwords blank on the db and the functions.php file but no dice.

    #97973
    tobeeornot
    Member

    Thanks for being patient, Karl – I’ll give it a try a bit later. I need to have a break from this for a few hours before I go nuts.

Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘Other’ is closed to new topics and replies.