• I am trying to install wordpress4.6.1 on wampserver, however after setting everything up, when I visit localhost/wordpress I keep getting the error message “Error establishing a database connection”. I do everything correctly but some how this error keeps popping up. Am I doing something wrong? I would really appreciate some help here.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Try resetting your MySQL/MariaDB password manually. If you have access to MySQL/MariaDB via shell/phpmyadmin, try issuing:

    SET PASSWORD FOR 'wordpressusername'@'hostname' = OLD_PASSWORD('password');

    Reference – https://codex.www.ads-software.com/Installing_WordPress#Common_Installation_Problems

    Just to piggyback on @agentmoller001’s advice…

    When developing locally I almost always use ‘root’ as the DB username and leave the password blank. ‘root’ is a built in MySQL user and is fine to use for local development since security is not usually a concern.

    dear wpnewguy
    we are going to first run you through a test to see whether your database is running
    // ** MySQL settings – You can get this info from your web host ** //
    /** 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’ );

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘error installing wordpress’ is closed to new replies.