• Resolved rod

    (@nomadarod)


    Hi,

    My hosting period finished and I’m trying to recreate my website on my laptop (ubuntu) so that I can recover the contents in the pages more easily when creating the website online in a new host. (It was a compromised host so I don’t want to simply bring the wp-content folder to the new location)

    So I followed this link in order to install WP in my laptop: https://ubuntu.com/tutorials/install-and-configure-wordpress#7-configure-wordpress

    but in the end I have a “Error establishing a database connection” and cannot proceed to the install.

    I don’t know how to edit the database or check it’s name when on a laptop. I tried to install phpmyadmin through this tutorial: https://www.linuxshelltips.com/install-phpmyadmin-in-linux/
    but I get a “not found” when typping https://localhost/phpmyadmin in my browser.

    How can I recover the content from the pages in order to copy-paste them to the new site?

    Hope it is not so confusing,

    Rod

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    first thing — is mysql installed and running? If so, are the necessary PHP libraries also installed? Do the DB_ values in wp-config.php match how youy’ve set up your system?

    If you’re not good at sysadmin, install https://localwp.com/ for a totally easy to use and self-contained WP installation.

    Thread Starter rod

    (@nomadarod)

    Thank you Steven. Issue solved after renaming wp-config-sample.php for wp-config.php and reinserting the values.

    Thread Starter rod

    (@nomadarod)

    Resolved

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error establishing a database connection on Linux localhost’ is closed to new replies.