• chimi

    (@chimi)


    Respected,

    i made a database in myphpadmin, through xampp,

    databasename: wp_db
    dtabaseuser: db_user
    password: 123456
    db_host: localhost
    gave all privileges
    and export it to localhost.sql
    and upload it,

    in wp-config.php file i did the following*

    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘wp_db’);

    /** MySQL database username */
    define(‘DB_USER’, ‘wp_user’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘123456’);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

    it shows me the error
    Error establishing a database connection

    Please help me what should i do further

    Regards
    Chimi

Viewing 15 replies - 1 through 15 (of 16 total)
  • Samuel B

    (@samboll)

    Thread Starter chimi

    (@chimi)

    i followed the link which u gave me but i dont know how to deal with that ? πŸ™ can u explain it in details please ?

    vpsdiscussions

    (@vpsdiscussions)

    Are you able to login to phpmyadmin using the same database details?

    If you are not then I would suggest to reset the database username password and use characters in password instead of numbers.

    Thread Starter chimi

    (@chimi)

    i m using the phpmyadmin from local computer, my webhosting is windows base hosting plan, i create the following database user etc and put into the wp-config.php but same problem ….

    the webhost provider gave me username n password for database but i dnt know how to change the password or how to login …

    Thread Starter chimi

    (@chimi)

    databasename: wp_db
    dtabaseuser: db_user
    password: 123456
    db_host: localhost
    gave all privileges
    and export it to localhost.sql
    and upload it,

    in wp-config.php file i did the following*

    ==============================
    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘wp_db’);

    /** MySQL database username */
    define(‘DB_USER’, ‘wp_user’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘123456’);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

    it shows me the error
    Error establishing a database connection

    now i want to know that the username and password which me webhosting provider , how and where i will use it ?

    vpsdiscussions

    (@vpsdiscussions)

    I would recommend you to contact your web hosting provider to get a link to access phpmyadmin area and try to login using the same details.

    Thread Starter chimi

    (@chimi)

    respected, the webhosting dont have the myphpadmin, that is why i m using the local phpadmin…..

    Thread Starter chimi

    (@chimi)

    one of my friend create database on the windows base web hosting, through phpmyadmin, but he wont let me know * thats thhe problem ..

    vpsdiscussions

    (@vpsdiscussions)

    OK. I can understand. As I suggested earlier can you please reset the database user password and use this time some characters instead of numbers?

    Please make sure that you will also need to update new password in wp-config.php file.

    Thread Starter chimi

    (@chimi)

    okay .. now i create again database name, username , and password in myphpadmin…

    Thread Starter chimi

    (@chimi)

    my dear the same problem … check here .. i did the same as you said sir,

    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘wordpress’);

    /** MySQL database username */
    define(‘DB_USER’, ‘wordpress’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘password’);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);

    /** Database Charset to use in creating database tables. */
    define(‘DB_CHARSET’, ‘utf8’);

    /** The Database Collate type. Don’t change this if in doubt. */
    define(‘DB_COLLATE’, ”);

    ======================================

    and this is my localhost.sql file check below
    =============================================

    — phpMyAdmin SQL Dump
    — version 3.2.4
    http://www.phpmyadmin.net

    — Host: localhost
    — Generation Time: Apr 04, 2010 at 12:04 AM
    — Server version: 5.1.41
    — PHP Version: 5.3.1

    SET SQL_MODE=”NO_AUTO_VALUE_ON_ZERO”;

    /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
    /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
    /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
    /*!40101 SET NAMES utf8 */;


    — Database: wordpress

    CREATE DATABASE wordpress DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
    USE wordpress;

    /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
    /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
    /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

    =====================================================

    and i upload the localhost.sql file also

    now what should i do ?

    Thread Starter chimi

    (@chimi)

    i m patiently waiting for your reply

    Regards chimi

    mrmist

    (@mrmist)

    OK in your original post your said you had –

    dtabaseuser: db_user

    With the config saying

    /** MySQL database username */
    define('DB_USER', 'wp_user');

    The config would need to match. It would need to be

    /** MySQL database username */
    define('DB_USER', 'db_user');
    Thread Starter chimi

    (@chimi)

    /** MySQL database username */
    define(‘DB_USER’, ‘wordpress’);

    and in wp-config.php

    /** MySQL database username */
    define(‘DB_USER’, ‘wordpress’);

    same i did ….. check the text above as i pasted*

    markrfmurphy

    (@markrfmurphy)

    are you trying to install this on a server or on your local machine which you said is running xammp?

Viewing 15 replies - 1 through 15 (of 16 total)

The topic ‘problem problem and problem with db’ is closed to new replies.