Forums

really confused. help, please. (9 posts)

  1. confuzzled
    Member
    Posted 5 years ago #

    Ok. I am super new to all of this so go easy with the techie terms, please. :)
    I am having a problem installing WP. I've read through some of the forum threads and corrected (at least I thought so) issues that I had which were addressed in said threads but I'm still having a problem. Here's the message I get when I load install.php
    "Error establishing a database connection! This probably means that the connection information in youn wp-config.php file is incorrect. Double check it and try again.
    Are you sure you have the correct user/password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running? "
    I've entered everything correctly. Here's the config.php info:
    <?php
    /** WordPress's config file **/
    /** http://wordpress.org/ **/
    // ** MySQL settings ** //
    define('DB_NAME', 'wakinglions'); // The name of the database
    define('DB_USER', 'wakinglions'); // Your MySQL username
    define('DB_PASSWORD', 'password removed'); // ...and password
    define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
    // Change the prefix if you want to have multiple blogs in a single database.
    $table_prefix = 'wp_'; // example: 'wp_' or 'b2' or 'mylogin_'
    /* Stop editing */
    $server = DB_HOST;
    $loginsql = DB_USER;
    $passsql = DB_PASSWORD;
    $base = DB_NAME;
    define('ABSPATH', dirname(__FILE__).'/');
    // Get everything else
    require_once(ABSPATH.'wp-settings.php');
    ?>
    Also, when I use the install-config.php file I get an error message that reads:
    "Sorry, I can't write to the directory. You'll have to either change the permissions on your WordPress directory or create your wp-config.php manually."
    Any help would be greatly appreciated.
    thanks
    tee

  2. podz
    Support Maven
    Posted 5 years ago #

    Have you already defined a MySQL database on the server ?
    Do you have server logs you can check ?

  3. southerngal
    Member
    Posted 5 years ago #

    Did you create a DB? Did you create a user for that database? And most importantly...did you add that user to the database?

  4. confuzzled
    Member
    Posted 5 years ago #

    By defined, do you mean created a username and password? That's all I did. Then there's the option to manage the database which is at https://mysqladmin.secureserver.net/1/ but I have no idea what to do on that page.
    I don't know what server logs are. Please advise.
    Thanks so much. I've been at this all morning to no avail.

  5. confuzzled
    Member
    Posted 5 years ago #

    southerngal,
    I took a look at your tutorial (which I got from another thread) and it was like greek to me. :0/ I use GoDaddy as a host and have their cheapest hosting plan which includes 1 MySQL database. I created the database (username and passoword) and assumed that was all I needed to do.

  6. southerngal
    Member
    Posted 5 years ago #

    I'm glad you looked at the tutorial. I think maybe you need to look at your control panel for your hosting plan and click on mysql database. If you don't see anything on there, you haven't added the user to the database. If you don't add the user, you can't use the database. :) If you see a bunch of writing like this:
    Connection Strings
    Perl $dbh = DBI->connect("DBI:mysql:your databasename:localhost","yourdatabasename","<PASSWORD HERE>");
    PHP $dbh=mysql_connect ("localhost", "yourdatabasename", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
    mysql_select_db ("yourdatabasename");
    Then you have created the DB and the User Name and have added the user to the database and there's another problem we're looking at. :)

  7. podz
    Support Maven
    Posted 5 years ago #

    That page is secure, so we cannot see it.
    You need to create a database, and note the full name (my host puts a prefix of it's own onto the DB name)
    Ensure that you are the USER permitted to access the DB, and that your password is correct.
    Also check - it may be written somewhere on that secure page - that DB_HOST is 'localhost'. It should be, but it's worth checking.
    Server logs are where all activity relating to your site is written by the server. If you can find them, they can help when tracking down errors as they will list them for you.

  8. confuzzled
    Member
    Posted 5 years ago #

    Thanks for all your help!
    I'll try and get it together based on your responses.

  9. antifuse
    Member
    Posted 5 years ago #

    I know this really isn't the place for this, but Bloghosts.com is much cheaper than GoDaddy for better service, and their customer support is top notch - They're really great with questions like that. But seeing as you're not all that tech savvy, switching hosting providers would probably be a pain in the butt :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.