Forums

[resolved] Installing WordPress to use an existing database (3 posts)

  1. tripleg
    Member
    Posted 2 years ago #

    Hi everyone,
    Let me give you the background: I'm trying to install WordPress onto my server but for the time being I only have FTP access (that is, I can't dial into any control panels, including phpMyAdmin).

    Now, I'm familiar with installing WordPress generally, as this server used to have a WordPress blog up until yesterday when my computer crashed during an upgrade and the site would no longer load (errors galore that a manual install only made worse). That's no big deal but what I'm hoping to do is (re)install WordPress in such a way that it picks up where it left off by reading the existing SQL tables on the server already, since I can't pull an up-to-date copy of my SQL database to plug into my new install. I can't seem to find any documentation on performing a new install using an existing database and I suspect someone here might be able to help me do it.

    A side note, the blog was previously installed into /wordpress but I see no need to do that now; if I were to install everything into the root what would I need to change in the config after reinstalling?

    Thanks for your help,
    3m

  2. Samuel B
    moderator
    Posted 2 years ago #

    you can change this line in wp-config.php
    $table_prefix = 'wp_';
    make the table prefix different for your second install - like
    $table_prefix = 'wp2_';

  3. tripleg
    Member
    Posted 2 years ago #

    thanks for the reply but i found the coding error and also regained phpmyadmin access so it's all resolved now for me.

    cheers,
    3m

Topic Closed

This topic has been closed to new replies.

About this Topic