• Hello, I am using a version of 4.2.2 and I have reached the final process of installation. I have copied word press to my server through Wamp server and now when go to http://localhost/new%20folder/wp-admin/install.php It Comes as Word Press > Error. This is what comes in the page :-

    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.

    I did not understand what to do next so as I visited the Word Press Support Forum, so please help me in detail as I dint Understand what is going on.

Viewing 7 replies - 1 through 7 (of 7 total)
  • I have copied word press to my server through Wamp server and now when go to…

    You first need to use wp-config-sample.php to make your own wp-config.php where you will add the missing info. The specifics for my Xampp are different, so maybe look at some of these links in relation to your wp-config.php file:
    https://www.google.com/search?q=wamp+wp-config

    Thread Starter Parv192

    (@parv192)

    But in one site they said to go to http://localhost/mysite/ according to that I went to http://localhost/New%20folder/ but it came to be as Database Error. The page info :-

    Error Establishing A Database Connection

    Now what to do, that page does not come

    You are getting the errors because wp-config.php is either missing or in need of edit.

    Thread Starter Parv192

    (@parv192)

    can you please tell how to edit it, i will do it. And pls tell in detail, so i do it correctly this time…

    I do not know the details for WAMP, but you will have to edit these lines in wp-config-sample.php and then save it all as wp-config.php:

    /** The name of the database for WordPress */
    define('DB_NAME', 'database_name_here');
    
    /** MySQL database username */
    define('DB_USER', 'username_here');
    
    /** MySQL database password */
    define('DB_PASSWORD', 'password_here');
    
    /**#@+
     * Authentication Unique Keys and Salts.
     *
     * Change these to different unique phrases!
     * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
     * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
     *
     * @since 2.6.0
     */
    define('AUTH_KEY',         'put your unique phrase here');
    define('SECURE_AUTH_KEY',  'put your unique phrase here');
    define('LOGGED_IN_KEY',    'put your unique phrase here');
    define('NONCE_KEY',        'put your unique phrase here');
    define('AUTH_SALT',        'put your unique phrase here');
    define('SECURE_AUTH_SALT', 'put your unique phrase here');
    define('LOGGED_IN_SALT',   'put your unique phrase here');
    define('NONCE_SALT',       'put your unique phrase here');
    
    /**#@-*/
    
    /**
     * WordPress Database Table prefix.
     *
     * You can have multiple installations in one database if you give each a unique
     * prefix. Only numbers, letters, and underscores please!
     */
    $table_prefix  = 'wp_';

    Also, I believe you will first have to make a database, SQL user and SQL password from within WAMP.

    Thread Starter Parv192

    (@parv192)

    But in some cases, i have this…

    */define(‘DB_NAME’, ‘database_name_here’);/

    define(‘AUTH_KEY’, ‘put your unique phrase here’);

    Do i have to edit the ones saying database_name_here or when they say put_your_unique_phrase_here or both places. Pls tell me that, I am confused.
    And pls give me an example by putting some random phase of something so i understand it…

    Thread Starter Parv192

    (@parv192)

    One more question, when I look at video tutorials at youtube, they say to go to http://localhost/ and when i go there, my localhost page is completely different from their’s. This is what comes for me…

    PHP 5 Apache 2 MySQL 5

    Version 2.5 Version Française

    Server Configuration

    Apache Version :
    2.4.9 – Documentation
    PHP Version :
    5.5.12 – Documentation
    Server Software:
    Apache/2.4.9 (Win64) PHP/5.5.12
    Loaded Extensions :

    apache2handler
    bcmath
    bz2
    calendar
    com_dotnet
    Core
    ctype
    curl
    date
    dom
    ereg
    exif
    fileinfo
    filter
    ftp
    gd
    gettext
    gmp
    hash
    iconv
    imap
    json
    libxml
    mbstring
    mcrypt
    mhash
    mysql
    mysqli
    mysqlnd
    odbc
    openssl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    Reflection
    session
    shmop
    SimpleXML
    soap
    sockets
    SPL
    sqlite3
    standard
    tokenizer
    wddx
    xdebug
    xml
    xmlreader
    xmlrpc
    xmlwriter
    xsl
    zip
    zlib

    MySQL Version :
    5.6.17 – Documentation

    Tools

    phpinfo()
    phpmyadmin

    Your Projects

    New folder

    Your Aliases

    phpmyadmin
    phpsysinfo
    sqlbuddy
    webgrind

    And what comes for them is –

    The Index of

    wordpress

    And when they press at wordpress, they go to some page having the configure button. But never comes for me. Why is it happening to me?
    Pls Reply……

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘End of Installation’ is closed to new replies.