0

This error has already been faced by a lot of people, but I could not find an answer in my case. My wordpress website works perfectly in local

What I have done:

  • Upload with filezila
  • Create a sql database in OVH -Import all the SQL tables from local to the website with phpmyadmin
  • Modify the wp-config.php file and also the wp-config-sample.php writting my informations.

Thanks for your help !!

14
  • Right now it's a localhost link. Do I need to change with the real website name?
    – nolwww
    Jan 24, 2019 at 16:54
  • Just tried to modify siteurl and home in the wp_options with the real website name. But it didn't work.
    – nolwww
    Jan 24, 2019 at 17:04
  • Can you change the name wp-config.php and enter the DB credentials in the installation wizard to see if it will connect? Don't finish installation, just check DB connection.
    – nmr
    Jan 24, 2019 at 17:15
  • I already modified the wp-config but it didn't work, I get this error. Maybe the localhost is wrong though. The host is OVH. I tried mysql5-21.
    – nolwww
    Jan 24, 2019 at 17:18
  • I modified the localhost in wp-config.php , and now, I don't have the same error, but a: 504 gateway time out
    – nolwww
    Jan 24, 2019 at 17:39

1 Answer 1

0

I too had faced the same issue many times but after refreshing the browser it solved my problem.

Kindly check the wp-config file and verify if the database name and other information is correct.

Another thing you can try is restarting your local host.

4
  • I've already done all this but thx
    – nolwww
    Jan 24, 2019 at 17:58
  • Are you in the initial development stage or you already have had developed the site. Jan 24, 2019 at 18:08
  • initial development !!
    – nolwww
    Jan 24, 2019 at 18:09
  • Did you try reinstalling by creating a separate database Jan 24, 2019 at 18:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.