• Resolved pier2001

    (@pier2001)


    I changed or deleted the content after DB_NAME in wp-config.php by mistake and I didn’ t do the backup during migrating to the server. now, https://localhost/wordpress/ shows “Error establishing a database connection” I know database name is “wan hui’s new website” but when I type it after DB_NAME doesn’t work. is there a way that I can find the right words after DB_NAME?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Do you have access to phpMyAdmin? How exactly was the database created?

    If you are able to browse the names of all databases that were created on the DB server, you can find out the name.

    Thread Starter pier2001

    (@pier2001)

    @hypersonic I can find the name which is “wan hui’s new website”, but in wp-config.php It seems to have a rule for a symbol, for example, ‘ is illegal. that is why I type “wan hui’s new website” after DB_NAME and save it. but I still can not log on localhost/Wordpress. as it is not “wan hui’s new website” I delete the original words after the DB_NAME which created by default according to the WordPress setting at the beginning. now I need to find out the original word in the wp-config.php. otherwise, I don’t know what to do.

    Thread Starter pier2001

    (@pier2001)

    the DB_NAME in wp_config.php is “wan hui\’s new website” I believe in PHP, \ is added by default. it is tricky. we have to be very careful

    Change your database name to one word, or multiple words linked by hyphens.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘forget the DB-NAME’ is closed to new replies.