• Proto77

    (@proto77)


    Hi all,
    I’m trying to install WordPress with MAMP beta for windows and I always get the “database connection error” whenever I try to run the 5 minutes installation.
    I followed the tutorial on this site (http://make.ww.wp.xz.cn/core/handbook/installing-wordpress-locally/installing-from-a-zip-file/) both editing the config file and trying to get it created by the application, all to no vail.
    MAMP installed correctly, I left the default settings, created a DB for my project, copied the WordPress folder into the htdocs one and renamed it as the DB.
    The MAMP support claims that they don’t know how to install WordPress and thus can’t help.
    What am I doing wrong?
    Thank you for your help.

Viewing 15 replies - 1 through 15 (of 19 total)
  • What is your db_name, db_user and db_password?

    Thread Starter Proto77

    (@proto77)

    DB_NAME: D20-Steam (I checked the caption when I edited the config file manually)
    DB_USER: root (default with MAMP)
    DB_PASSWORD: root (default with MAMP)

    When you launch MAMP do you see green for both Apache and mySQL?

    Might the ports numbers be wrong?
    http://make.ww.wp.xz.cn/core/handbook/installing-a-local-server/installing-mamp/#5-creating-a-mysql-database-with-mamp

    Thread Starter Proto77

    (@proto77)

    Both leds are green, as ports numbers I used 8888 and 8889 which are the defaults.

    Do you have any other applications running which might interfere?

    The ‘database connection error’ means that WP cannot see the db at all, it can’t even check the user/pass are correct so it would seem then that something could be blocking it.

    Thread Starter Proto77

    (@proto77)

    Not that I know of.
    Do I have to quit MAMP once the DBs are started maybe?

    MAMP needs to stay On. Quitting it will stop the db’s.

    Do you have Skype or any IM applications running?

    Thread Starter Proto77

    (@proto77)

    I don’t use Skype, nor other IM applications (sort of asocial here πŸ˜‰ ).
    I really can’t find the cause for this error, at first I thought it was something into the configuration or a typo in the config file, but those things seem to be ok.

    in MAMP, open phpmyadmin and create another database called ‘wordpress’
    Edit wp-config.php and make sure the db_name is also wordpress

    What happens then?

    Thread Starter Proto77

    (@proto77)

    Same thing…

    Thread Starter Proto77

    (@proto77)

    Oh, I copied again the WordPress folder into htdocs and renamed it wordpress to avoid caption issue too.

    Very odd.

    This is what mine looks like in MAMP:

    /** The name of the database for WordPress */
    define('DB_NAME', 'wordpress');
    
    /** MySQL database username */
    define('DB_USER', 'root');
    
    /** MySQL database password */
    define('DB_PASSWORD', 'root');
    
    /** MySQL hostname */
    define('DB_HOST', 'localhost');

    and yours is identical to that?

    Thread Starter Proto77

    (@proto77)

    Yes it is, I have the file in front of me now.

    Try this?

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost:8888’);

    or

    /** MySQL hostname */
    define(‘DB_HOST’, ‘127.0.0.1’);

    Thread Starter Proto77

    (@proto77)

    With the first variant the connections times out, the second one instead makes even the root unreachable.

Viewing 15 replies - 1 through 15 (of 19 total)

The topic ‘Installing with MAMPS beta’ is closed to new replies.