• Janne-san

    (@janne-san)


    I’m building my WordPress site offline with Mamp Pro. My trial period is now over and I’m trying to change to normal Mamp but it doesn’t work.

    I get this message: Error establishing a database connection

    Does anyone know how to fix this?

    Thank you for your answers.

    – Janne

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    Have you created a new database for your local site and are the database settings in your wp-config.php correct?

    Thread Starter Janne-san

    (@janne-san)

    Thank you so much! I got it working but all my pages are now missing. Can I get them back somehow?

    Moderator keesiemeijer

    (@keesiemeijer)

    Did you make a backup of your database from Mamp Pro?
    if you did you can import the old database: https://codex.www.ads-software.com/Restoring_Your_Database_From_Backup

    Thread Starter Janne-san

    (@janne-san)

    I really value your help but I’m just wondering why didn’t you tell that I should back up my files before creating this new database?

    Moderator keesiemeijer

    (@keesiemeijer)

    I’m really sorry about that.

    I get this message: Error establishing a database connection

    This made me conclude you already uninstalled Mamp Pro.

    Can you still see the database you created in Mamp Pro?

    Thread Starter Janne-san

    (@janne-san)

    No I can’t see that database. Does it mean that the new one replaced the old one?

    Thread Starter Janne-san

    (@janne-san)

    I did not install or uninstall Mamp at this point. I just changed to the regular version and I got the error message. Is there any way I could access the old database and get that information back? I just lost 2 weeks work here.

    Moderator keesiemeijer

    (@keesiemeijer)

    Does it mean that the new one replaced the old one?

    No. You can create multiple databases with Mamp and Mamp Pro, and creating a new one will not replace other databases. I just installed mamp Pro and I could switch between the two without any problems.

    Try:
    – quitting and restarting mamp and see if you can see the old database in the phpMyAdmin. (re-starting your computer is better because it will flush the DNS cache).

    – Deleting cookies and cache in your browser

    Did you try the Mamp forums: https://forum.mamp.info/index.php?c=1

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Changing from Mamp Pro to normal Mamp’ is closed to new replies.