Viewing 10 replies - 1 through 10 (of 10 total)
  • Yeah, same I’m having the issue with my installation. I already tried to update the all details like Database name, username and password. But it still give me the same error. One thing you can check, go to remote sql section and get the HOST url for your database. Try to edit that one on wp-config file & then give it a shot. Hope it’ll work. I tried that one but it still not working for me.

    Hi,
    In your first screenshot their you have wp_wp table name. that’s why an error occurs theirs. You need to create a new fresh database without any sub-database, then you are able to install WordPress in your localhost.
    https://prnt.sc/kvr2ye

    Thread Starter jklyn

    (@jklyn)

    Nothing is working. Waiting for the correct answer.

    wp_wp is not the “name” of the database. It is the name and prefix
    Just use wp

    fyi, you should always give your database a more descriptive name

    @devpurvik please do not add to other peoples post with your own problems. Create a fresh new post and describe your problem in detail.

    Thread Starter jklyn

    (@jklyn)

    I’ve used another database named ‘testing’. But also same error occurs.

    @jaycbrf For the same kind of Problems we should’t create another threads. If we do that there will be lots of other with the same things. So trying to figure out things along with other developers. Nothing else.

    @devpurvik
    From Forum Guidelines:

    Unless users have the exact same version of WordPress on the same physical server hosted by the same hosts with the same plugins, theme, and configurations, then the odds are the solution for one user will not be the same for another. For this reason, we recommend people start their own topics.

    When you create a database through WAMP or XAMMP it’s actually better to do it in a different way than jsut crateing the database by itself. The better way to do it is to add a new user and check the checkbox for ‘Create database with same name and grant all privileges’. What that does is let you set up the database as well as the username and password, and then set the correct permissions.

    The reason that this is preferrable is that you know all of the vlaues, instead of trying to use the ‘root’ account. It just maeks things a whole lot easier.

    Please submit a screenshot of your WP-CONFIG file. Blue any personal info if need be.

    My suggestion is to use this tool for WordPress- https://local.getflywheel.com

    Download Local and install to worry-free using WordPress and developing your site.

    Nginx server with latest PHP version.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Can’t install and connect to Database in localhost’ is closed to new replies.