-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP message: WordPress database error CREATE command denied to user ... for table ... #898
Comments
The recovery email I received, contained the following (just in case this helps):
|
If you have access to phpMyAdmin or a similar tool: CREATE TABLE wp_2fa_webauthn_users (
user_id bigint(20) unsigned NOT NULL,
user_handle varchar(128) NOT NULL,
PRIMARY KEY (user_id),
UNIQUE KEY user_handle (user_handle)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
CREATE TABLE wp_2fa_webauthn_credentials (
id bigint(20) unsigned NOT NULL auto_increment,
user_handle varchar(128) NOT NULL,
credential_id varchar(767) CHARSET ascii COLLATE ascii_bin NOT NULL,
public_key varchar(1024) NOT NULL,
counter int(11) NOT NULL,
name varchar(255) NOT NULL,
added int(11) NOT NULL,
last_used int(11) NOT NULL,
u2f tinyint(2) NOT NULL,
PRIMARY KEY (id),
UNIQUE KEY credential_id (credential_id),
KEY user_handle (user_handle)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci; Please replace |
Unfortunately, this is handled by WordPress; I don't think I have any control there :-(
This I hope I can do, thanks! |
Oh, I didn't realize.
Would be cool. But I guess whoever runs runs a configuration the way I do, knows how to deal with these issues either way. It's just that it seemed fine until I logged off and attempted to log back on. |
Hi,
tried installing this plugin in order to get around the issues with U2F and also in the hopes to get my FIDO2 keys to work. It broke my site until I disabled it again.
When I merely enabled it, everything seemed fine, except that under "Profile" I didn't see any 2FA-related settings anymore.
But the plugin list showed this plugin active and there was also a related setting tab that worked. So I logged off in order to test it and was met with a "critical error" message.
Digging into the server logs I saw the error message mentioned above.
I realize this is owed to the fact that I run a somewhat stricter regime than is perhaps usual for WordPress sites and I also know how to get around the issue with table creation.
However, a slightly more graceful failure would be nice (such as being able to show roughly what is wrong, i.e. table creation without perhaps mentioning too many DB details). And perhaps fail earlier. I.e. when I activate the plugin, not when I try to log back in.
Thanks!
The text was updated successfully, but these errors were encountered: