How do I fill in WP Config File? (13 posts)

  1. myenglishimages
    Posted 3 years ago #

    I've looked through the wordpress information on how to fill out my Config File.

    The name of the database you created for WordPress in Step 2 .
    The username you created for WordPress in Step 2.
    The password you chose for the WordPress username in Step 2.
    The hostname you determined in Step 2 (usually localhost, but not always; see some possible DB_HOST values). If a port, socket, or pipe is necessary, append a colon (:) and then the relevant information to the hostname.
    The database character set, normally should not be changed (see Editing wp-config.php).
    The database collation should normally be left blank (see Editing wp-config.php)."

    This hasn't worked.

    I'm looking for EXACTLY how to fill in the information with an example.

    Any help would be greatly appreciated.

  2. CPC Mike
    Posted 3 years ago #

    There is no way to give you exact details since only you know your database details. I suggest following the instructions again and try to install again and post back with any errors. "This hasn't worked" does not give any indication of what you have done wrong.


  3. myenglishimages
    Posted 3 years ago #

    Thank you.

    I had successfully installed WP on another site a few weeks ago but have forgotten how to do it. At the time I had followed the instructions on a site that gave clear examples.

    They looked like this:

    ('DB_NAME', 'sitename_-_com')

    Unfortunately, (my own mistake) I didn't bookmark that site so I've had a heck of a time setting it up again this second time.

    What I found frustrating was that even the first time the only thing that got it to work was doing something different from what is on WordPress' site and following this other site I found.


    I've been following the above link with no luck.

  4. CPC Mike
    Posted 3 years ago #

    It can be frustrating but it is a rather simple process. Unless you post what happened on install and any error messages there is no way to help you get this solved.

    Otherwise, the docs on this site are pretty complete for the installation. Maybe you can find more detailed information.


  5. myenglishimages
    Posted 3 years ago #

    At present I've got the error message saying that the password and user name are correct but that wordpress can't recognize the DB name. This seems to be the problem.

    No matter how many times I enter the database name it is never recognized. I've tried entering it with the username before it as suggested in the error message.

    The wordpress documentation says to enter the DB_NAME but doesn't show an example like this:

    ('DB_NAME', 'examplename')

    Without giving a clear example to follow I don't know how anyone is supposed to complete the "Famous five minute upload" process.

    It is a bit frustrating but honestly, it's also very interesting. It's like a puzzle and in reading and trying things I can find an answer. That's kind of fun. So I'm really grateful for you suggestions.

  6. CPC Mike
    Posted 3 years ago #

    You had to create the database so you should know what it is. If in doubt either look in your hosting control pane or contact your host for the database name. Keep in mind that on shared hosting, the database name is usually prefixed by a username (eg. username_databasename).

  7. myenglishimages
    Posted 3 years ago #

    Yes, I created the database and I know what it is.

    I've entered it and it has not been recognized.

    As I said above I've already tried username_databasename.

    That hasn't worked and has resulted only in the same error message.

  8. myenglishimages
    Posted 3 years ago #

    The error message reads:

    "Can’t select database
    We were able to connect to the database server (which means your username and password is okay) but not able to select the XXXXXXXX database.

    Are you sure it exists?
    Does the user XXXXXXXX have permission to use the XXXXXXXX database?
    On some systems the name of your database is prefixed with your username, so it would be like XXXXXXXX_XXXXXXXX. Could that be the problem?

    If you don't know how to set up a database you should contact your host. If all else fails you may find help at the WordPress Support Forums."

    I've replaced the names with XXXXXXXX for privacy.

  9. myenglishimages
    Posted 3 years ago #

    It worked.

    I don't know why but it worked.

    I have no idea what I finally did but after trying one last time it finally clicked.

    Basically I followed the instructions in the WP files and user info. For whatever reason it finally connected. Perhaps there was something wrong with my web host? I'm not sure. But nevertheless, thanks for you support and there is a good lesson to be learned here:

    Keep trying,
    Don't get frustrated.

    This is a puzzle to figure out and it's really interesting.

    Thanks again.

  10. Marvel Labs
    Posted 3 years ago #

    Dear friend,

    Most hosts provide quick isntallation of wordpress. You just have to click and wordpress is installed.

    The wp-config file is automatically configured by webhosts, so that you can concentrate on spicing up your wordpress.

    You can see everything related at http://www.marvellabs.com

  11. palmettolacrosse
    Posted 3 years ago #

    I have a question concerning your last comment. "The wp-config file is automatically configured...."

    I use DreamHost, and have installed Word Press via their one click upload. Their instructions said I should create an admin user at:
    (domain name)/wp-admin/install.php, but I receive this error message:

    "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 mysql.palmettolacrosse.net. This could mean your host's database server is down."

    My server is not down. I just recently registered my domain name. Is it possible the DNS has not yet been populated or do I have a bigger problem?

  12. Marvel Labs
    Posted 3 years ago #

    Please uninstall WordPress from one click installs > remove apps
    Then you can reinstall it. DNS issues do not relate to installing WordPress
    You can check status of your database server by checking wp-config file in the root of your web server.

  13. Ipstenu-DH
    DreamHost Rep
    Posted 3 years ago #

    My server is not down. I just recently registered my domain name. Is it possible the DNS has not yet been populated or do I have a bigger problem?

    Actually yes that's probably it :)

    I take it that palmettolacrosse.net is your domain name. If you just registered it, and WP is looking for mysql.palmettolacrosse.net, then the names may not have propagated yet.

    You can check at http://www.whatsmydns.net/#A/mysql.palmettolacrosse.net :)

    If this is still a problem, please open a support ticket with us and we'd be happy to look it up!

Topic Closed

This topic has been closed to new replies.

About this Topic