- AuthorPosts
- Ed WelchGuest
I am getting an error message when trying to restore my website.
[message] => Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1227 Access denied; you need (at least one of) the SUPER or SET_USER_ID privilege(s) for this operation in /home/dh_db9hxu/cornerstonechurchwc.org/wp-content/plugins/boldgrid-backup/admin/class-boldgrid-backup-admin-db-import.php:352What assistance can you provide?
Thanks
EdBrad MarkleKeymasterHello Ed,
Thank you for reaching out to us. I understand how important it is to get your website restored smoothly, and I’m here to help.
The error message you’ve provided indicates that the database user account being used for the restore process is missing specific privileges, such as
SUPER
orSET_USER_ID
. These privileges are sometimes required for certain database operations, especially when dealing with advanced backup and restore features.Here are some steps you can take to resolve this:
- Check Database User Privileges:
- Log in to your hosting provider’s control panel (e.g., cPanel or phpMyAdmin).
- Navigate to the database user settings and ensure the user assigned to the database has all necessary privileges.
- Contact Your Hosting Provider:
If you don’t have the option to modify the database user privileges, contact your hosting provider. Share the error message with them, as they may need to temporarily grant the requiredSUPER
orSET_USER_ID
privileges to complete the restore. - Alternative Restore Methods:
If modifying the privileges isn’t possible, try restoring your site using an alternative method:- Manual Restore: Extract the database file from your backup and import it manually using phpMyAdmin or a similar tool.
- Command Line Restore: If you have SSH access, use a command-line tool like
mysql
to import the database.
We’re happy to help, please keep us updated!
– Brad
Ed WelchGuestHow do I know what user the backup is using? There is only one user assigned to the DB and it has full permissions.
Brandon CKeymasterHi Ed,
It’s pretty common to only have one user assigned to your websites database. You can find the assigned user information in your websites wp-config.php file.
You can access the file through your hosting panels file manager or FTP, and also by using a plugin like Advanced File Manager for WordPress.
Once you’ve accessed wp-config.php scroll down a bit to the Database Settings section and look for the user name under /**Database username */.
I hope this helps!
Ed WelchGuestOk. I checked the DB user in the config file is the one with the full DB access. I have an issue where there was a page that I created that was missing and my website appears to have been restored to an older version. I uploaded files to the media folder and they were still there but the page was not? Is it possible that upkeep restored my DB automatically? I can’t find any thing in logs to say that and there is no restore log.
Thoughts?Brandon CKeymasterHi Ed,
It’s possible Total Upkeep performed an automated backup and that would be based on your configuration. Some questions for you:
Did you perform any manual restore operations using Total Upkeep recently, or have you scheduled automatic backups/restores?
Is the missing page a newer addition to your website compared to the rest of the content you see now?
When you checked the logs, was there any indication of changes or actions performed around the time you noticed the issue? Your last backup log could possibly have something for us to review.
If we can get information it will help narrow down if Total Upkeep may have restored the site or if another factor caused the issue. Thanks Ed!
Ed WelchGuestI added a new page with media on 11/29. I also made changes to the menu and home page. We did not notice the missing page until Fri Dec 20th. At that time I tried to determine what happened. I checked the upkeep logs and there were several backups but no restores. I did not do a restore until the other day, in which I received the access error. I was not successful in the restore process. I then engaged Dream Host to determine what happened and I really did not get much information from them except they could restore back to Dec11, which I asked them to do. Well, they did, and the file structure had the media files but the media tab in WP did not. I asked if they restored the DB, and they said no, so they did that and that was only back to dec 15th at this time. The media was still not in the DB so they had to run a script to import that information. Cluster at this time basically. Good thing it was only one page is what I was thinking.
The backups from Upkeep are.
Nov 25th
Dec 2nd
Dec 9th
Dec 16th
Dec 22
Dec 23
I downloaded the 25th, 2nd and 9th. There is a 45mb difference b/n 25th and 2nd.
I checked the archive_date.log files and they basically, get a list of information to archive, then archive, then email. There is no mention of restore at all. The only difference I can see is that the 25th. PHP version was 8.2.18 and the 2nd was 8.2.26.
Upkeep was set to auto backup on minor WP changes and auto retore.
The settings for Upkeep are the installed basics. I have not changed anything.
Does this help?Brandon CKeymasterThanks for your detailed explanation, yes, it was very helpful.
One possible explanation for Total Upkeep not logging your restore could be an automatic restore misfire. If Total Upkeep is set to auto-restore upon critical errors, it might have reverted to an earlier state without generating a standard restore log. Look for errors like PHP or plugin compatibility issues around Dec 15–20, which might have triggered this.
You can try to find more information on what happened to the Nov 29 changes by checking the Nov 25 backup.
- Since the Nov 25 backup pre-dates your Nov 29 changes:
- Extract the backup to a staging site.
- Compare the database entries and media files from Nov 25 with your current live site.
- If your Nov 29 changes are not there, the data might not have been properly saved in the database originally.
You also mentioned that DreamHost performed an automatic restore for you. The mismatch in media file structure and database entries suggests an incomplete restore occurred—possibly external to Total Upkeep. The restoration by DreamHost may have compounded this, especially if the database and file system were restored independently without synchronization.
Lastly, the PHP version change between Nov 25 and Dec 2 could have caused instability, particularly with plugins or themes. A critical error during this period may have prompted an unnoticed auto-restore.
Suggestions for moving forward:
Analyze Total Upkeep logs thoroughly. Look for indications of critical errors or auto-restore attempts, even if standard restore logs aren’t visible. Check the
archive_date.log
files for discrepancies.Examine server logs around Nov 25–Dec 20 for PHP errors that might align with the timing of the auto-restore. Since the Nov 25 backup pre-dates any potential issues, you could restore it to a staging environment to verify its content and ensure the missing page is there. Then, you can recreate subsequent changes.
Recovering the Nov 29 additions to your site might be possible but you will need to download and review your Dec 2 and Dec 9 backups, especially the database:
- Use tools like phpMyAdmin or a database viewer to search for:
- The missing page title in the
wp_posts
table. - Media references (e.g., image file names) in the
wp_postmeta
orwp_posts
tables.
- The missing page title in the
- Confirm if your Nov 29 changes exist in these backups.
From there look for Auto Restore or Error logs:
- Investigate if Total Upkeep’s auto-restore reverted to the Dec 2 backup or earlier due to an error.
- Check server error logs for PHP, plugin, or WordPress errors around Dec 2–20, particularly issues with database writes.
If the Nov 29 page data is missing from all backups you’ll need to use the media files already in the system to manually rebuild the page. Use any draft, autosave, or revisions available in WordPress for the homepage and menu changes.
Moving forward you might also want to adjust your Total Upkeep settings. Disable Auto-Restore on Minor Changes if you suspect this feature caused unintended rollbacks, and also keep Dreamhost aligned. Ensure they perform synchronized restores for both the database and file system to prevent mismatched states.
Thanks Ed! I hope this helps with your efforts! Let us know if we can assist you further.
- Check Database User Privileges:
- AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)