Skip to main content

MySQL server reported that no user with this name exists

Comments

5 comments

  • Nahoo
    I've checked the table: mysql.users and it is empty (besides the new users I've just added).
    0
  • cPanelMichael
    Hello, Did you make a backup of your databases before upgrading MySQL? If not, please open a support ticket using the link in my signature so we can take a closer look. Thank you.
    0
  • Nahoo
    Well, I have started on my own make-shift solution (starting with WordPress websites)... In Shell: grep -E "define\('DB_(USER|PASSWORD)'" /home/*/public_html/wp-config.php; Then copy and paste the results into your text editor (that supports Regex)... Find: [^:]+:define\('DB_USER', '(([^_">+_?)[^">*)'\); [^:]+:define\('DB_PASSWORD', '([^">+)'\); Replace with: CREATE USER '$1'@'localhost' IDENTIFIED BY '$3'; GRANT ALL PRIVILEGES ON `$2%`.* TO '$1'@'localhost'; And back to Shell: mysql And then paste the resulting code back into there to create the MySQL users.
    0
  • Nahoo
    I've gone through all the databases, checked their accounts and added the user listed in the config files with the relevant permissions. The WordPress config search really helped get the restoration underway, but the remaining accounts took some time. According to cPanel tech support, no one else seems to have experienced this problem...
    0

Please sign in to leave a comment.