• hi all

    i installed xampp server and create database in mysql as named ‘wp’ and paste all files in htdocs folder and also i configure file wp-config but when i try to connect with it shows me error .. when i open this link
    http://localhost:8080/wp/

    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 wp database.
    
        Are you sure it exists?
        Does the user wordpress2 have permission to use the wp database?
        On some systems the name of your database is prefixed with your username, so it would be like username_wp. Could that be the problem

    ?

    mysql db image link

    image

    anynone please help me

Viewing 1 replies (of 1 total)
  • Reading your error message it says it can connect to mysql, so the user “wordpress2” is valid and your password matches.
    Then is asks if this user has permissions to access this database. You did not answer this question.

    In PHPMYADMIN there is a tab along the top labelled “privileges”, in it you need to grant all rights for this user on your database.

    Otherwise maybe enabling debugging will gather more information.
    Find the WP_DEBUG line in your wp-config.php, comment it out and add:

    error_reporting(E_ALL); ini_set('display_errors', 1);
        define( 'WP_DEBUG', true);

Viewing 1 replies (of 1 total)

The topic ‘wordpress error with database’ is closed to new replies.