Skip to main content

[kind of urgent] Customer Website down after changing SQL user password

Comments

3 comments

  • cPRex Jurassic Moderator
    Hey there! You did everything correctly on the database side of things, but the site code will have a database connection string that needs to be updated as well. For example, a WordPress site has this entry in the wp-config.php: /** The name of the database for WordPress */ define('DB_NAME', 'username_wp1'); /** MySQL database username */ define('DB_USER', 'username_wp1'); /** MySQL database password */ define('DB_PASSWORD', 'yourdatabaseuserpassword'); /** MySQL hostname */ define('DB_HOST', 'localhost');
    You'd need to find that connection string for your website and update the password there, and then I would expect things to work well.
    0
  • digitalpage
    Hey there! You did everything correctly on the database side of things, but the site code will have a database connection string that needs to be updated as well. For example, a WordPress site has this entry in the wp-config.php: /** The name of the database for WordPress */ define('DB_NAME', 'username_wp1'); /** MySQL database username */ define('DB_USER', 'username_wp1'); /** MySQL database password */ define('DB_PASSWORD', 'yourdatabaseuserpassword'); /** MySQL hostname */ define('DB_HOST', 'localhost');
    You'd need to find that connection string for your website and update the password there, and then I would expect things to work well.

    Thanks so much for your reply, that ended up being the issue. I sorted that out with the hosting companies support team. I'm not a professional domain/hosting guy, am a telecommunications and internet guy who took on one of my customers domain and web hosting as a little learning experience as they were unhappy with their current provider. Definitely wont be making this mistake again haha! Learnt my lesson.
    0
  • cPRex Jurassic Moderator
    I'm glad that help was valuable!
    0

Please sign in to leave a comment.