• swoopr

    (@swoopr)


    I’m begginer and I have problem withwp-config.php settings.
    I write this:

    <?php
    /** WordPress's config file **/
    /** https://www.ads-software.com/ **/
    // ** MySQL settings ** //
    define('DB_NAME', 'blog_swoop_name'); // The name of the database
    define('DB_USER', 'blog.swoop.name'); // Your MySQL username
    define('DB_PASSWORD', '********'); // ...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_'
    // 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', 'cs_CZ');
    /* 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');
    ?>

    but browser wrote me:
    Error establishing a database connection! This probably means that the connection information in your 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?
    WHAT’S WRONG?
    My blog adress is: https://www.swoop.name/blog/
    Thank you for fast reply. I’m really hopeless.

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter swoopr

    (@swoopr)

    BTW: My password, login and DB name are right. I’m surre.

    Thread Starter swoopr

    (@swoopr)

    Thank you, but i can’t find solution of my problem… I try fast everything..

    If you email me with some login information for your cpanel, I’ll find the settings for you.
    tamba2 at gmail dot com

    Thread Starter swoopr

    (@swoopr)

    BTW, what’s cpanel?

    Thread Starter swoopr

    (@swoopr)

    If you mean access to my domain, … thats only my. But anything else i send you. No problem

    How did you set up the database ?

    Thread Starter swoopr

    (@swoopr)

    I have hosting by PIPNI.cz. There are formular. Into this i have put my database name, and password. All else is generated by robot. Robot expand the DB name about my domain name.
    Example: i fill this DB name: blog
    Robot expand it on _swoop_name
    Result DB name: blog_swoop_name
    Login is the same, but instead of _ is . (dot)

    Is ‘localhost’ definitely correct ?

    Thread Starter swoopr

    (@swoopr)

    That i don’t know sure. I installed WP into folder “blog”.
    adress these is: https://www.swoop.name/blog/
    The exact adress is: /DISC2/WWW2/SWOOP.NAME/BLOG/
    I’s it possible that is wrong this parameter wp-config.php:
    define(‘ABSPATH’, dirname(__FILE__).’/’);

    No, there is nothing wrong with the file.
    The error is in one of the 4 pieces of information that you have given WP.
    On your host pages, it should mention the DB_Connection string ?
    Is localhost in that ?

    dissurion

    (@dissurion)

    MySQL Server : mysql
    MySQL Database : yourdomain_com or name_yourdomain_com
    MySQL Login : yourdomain.com or name.yourdomain.com
    (https://new.pipni.cz/napoveda.phtml?akce=jazyk)
    These look different from the values you entered. Eg I would enter ‘swoop.name’ as user instead of ‘blog.swoop.name’. But you say you are sure of them?

    dissurion

    (@dissurion)

    If the connection can be made I believe it would give you an error on the password/user. So there is no connection to the mysql server in the first place (and so also no checking whether you user/pass is correct).
    First focus on the ‘localhost’. One of the 20 possibilities will work.

    Thread Starter swoopr

    (@swoopr)

    What looks different? I mean thats everything inserted right.. My opinion is, thats problem with damn “localhost”..

    MySQL Server : mysql
    Try ‘mysql’ instead of ‘localhost’

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Please, help me with wp-config settings’ is closed to new replies.