WordPress.org

Ready to get started?Download WordPress

Forums

Switched hosts and can't make blog work (12 posts)

  1. emeraldmarine
    Member
    Posted 5 years ago #

    Hey there,

    I'm completely boggled right now... I've never worked with WordPress and I recently took over editing a website that has a wordpress attached to it. I use dreamweaver for editing the site and since we moved the site to a new host I can't get the wordpress to work. Below is the settings I've plugged into the config thing, of course the password isn't listed but it's correct in my file. What am I missing? Thanks in advance for the help!

    <?php
    // ** MySQL settings ** //
    define('DB_NAME', 'blog'); // The name of the database
    define('DB_USER', 'emeralf2'); // Your MySQL username
    define('DB_PASSWORD', '*****'); // ...and password
    define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value

    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix = 'wp_'; // Only numbers, letters, and underscores please!

    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-includes/languages.
    // For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
    // to enable German language support.
    define ('WPLANG', '');

    /* That's all, stop editing! Happy blogging. */

    define('ABSPATH', dirname(__FILE__).'/');
    require_once(ABSPATH.'wp-settings.php');
    ?>

  2. @mercime
    Volunteer Moderator
    Posted 5 years ago #

    WordPress Codex on Moving WordPress
    http://codex.wordpress.org/Moving_WordPress

  3. moshu
    Member
    Posted 5 years ago #

    I can't get the wordpress to work.

    That's quite vague "technical" description.
    Maybe you screwed up the move.
    Maybe on the new server is not localhost.
    How would we know if you are not able even to give the error message you got...?

  4. emeraldmarine
    Member
    Posted 5 years ago #

    "Error establishing a database connection

    This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. This could mean your host's database server is down.

    Are you sure you have the correct username and password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?
    If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums."

    That's the error, sorry for my vague technical description.

  5. moshu
    Member
    Posted 5 years ago #

    Are you sure you have the correct username and password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?

    And can you answer a 120% positive "YES" to all the questions?

  6. emeraldmarine
    Member
    Posted 5 years ago #

    No, I can't answer yes to all of those questions. Our website is up and running on our new host and all of the wordpress files are stored in a folder called "blog". You're not prompted to put input a username and password in when accessing the blog from the internet.

    With the code I copied above, how do you determine the database name, user name and password? With the database name, I used the folder in which the blog is stored and for user name and password I used the user name and password for accessing our site via ftp.

  7. moshu
    Member
    Posted 5 years ago #

    With the code I copied above, how do you determine the database name, user name and password?

    You ask your host if you don't know it.

    You're not prompted to put input a username and password in when accessing the blog from the internet.

    Of course, not. Those are the database name/user/pw/server data!

    And what you did for folder=DB name and ftp user/pw combo... Wrong, wrong.

    Those have nothing to do with the database.

    And now the one million dollar question: did you, actually bring over the database from the old place? As in making a backup (aka Export) of the database?

  8. emeraldmarine
    Member
    Posted 5 years ago #

    Well, I downloaded all of my files from old host and re-loaded them through ftp to the new host.

    As far as your wrong, wrong comment, it's not really helpful to just tell me I'm wrong. Can you tell me what they do reference to since I'm double wrong?

    Our host simply hosts our website, they give us server space, an ftp address, user id and password. I'm sorry that I'm confused with how to use the wordpress program but, then again, I wouldn't be posting here if I wasn't.

  9. moshu
    Member
    Posted 5 years ago #

    There is nothing in the files.

    All your content is/was in the MySQL database.

    WordPress creates a so-called database driven dynamic website (you can read about it on the net by googling), so if you didn't save (in other words: backed up or export) the database at your old site, then there is no blog. Period.
    You can create a new database and install WP into it but that will be completely empty.

    I should have put "wrong" 4 times because all your assumptions were wrong.
    And in the future don't take over sites for which you don't have the necessary knowledge.

    And your host "simply" should have much more than that... as I am sure they have. You just don't know about it.

  10. whooami
    Member
    Posted 5 years ago #

    Our host simply hosts our website, they give us server space, an ftp address, user id and password.

    wordpress requires mysql. you need to find out if your host provides that. if not, wordpress wont work on that host. if they do, you need to follow the instructions already provided for moving wordpress.

    its not just about files.

    this is ALL covered in the docs. theyre accessible via the link at the top of EVERY page on this site that says "DOCS".

    If you simply dont know what youre doing, find someone that does -- lots of us do this stuff with our hand tied behind our backs.

  11. emeraldmarine
    Member
    Posted 5 years ago #

    Well, you've been simply wonderful in helping me out...

    I still have access to my old host and nothing has been deleted from it yet. Is there anyone out there willing to actually help me out with transferring the wordpress file over. I would really appreciate it...

    Thanks,

    Nathan

  12. emeraldmarine
    Member
    Posted 5 years ago #

    Whoops, I posted without seeing Whooami's response! Thanks Whooami, now I'm getting somewhere. I did read the documents but I didn't realize that Mysql was the only way to use it. I kept thinking there was a way with ftp or dreamweaver and I just couldn't find the instructions. Seriously, thank you, that helps set me in the right direction.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.