-
Notifications
You must be signed in to change notification settings - Fork 21
Database error when installing the Upper Plugin #55
Comments
Hi @paragonn thanks for your report! Please provide more details about your environment, like DB version. |
Sure thing: I know that Digital Ocean's Managed Databases do no like tables without a primary key. Has something to do with replication. |
Having the same issue with MySQL 5.7.35 and Craft 3.7.30.1. Always have to delete the table by hand to install it.
|
I am sure this is not the same issue. In our case, the table already exists. It is not about primary key or similar. |
Thanks @L3P3 |
I think this issue here is not related with my fix. You should better leave it open. Or have you looked into it a bit more? |
@L3P3 |
create table {{%upper_cache}} ...Exception: SQLSTATE[HY000]: General error: 3750 Unable to create or change a table without a primary key, when the system variable 'sql_require_primary_key' is set. Add a primary key to the table or unset this variable to avoid this message. Note that tables without a primary key can cause performance problems in row-based replication, so please consult your DBA before changing this setting.
The SQL being executed was: CREATE TABLE
upper_cache
(uid
varchar(40) NOT NULL UNIQUE,url
text NOT NULL,urlHash
varchar(32) NOT NULL,headers
text NULL DEFAULT NULL,tags
text NOT NULL,siteId
int(11),dateCreated
datetime(0) NOT NULL,dateUpdated
datetime(0) NULL DEFAULT NULL) ENGINE = InnoDb DEFAULT CHARACTER SET = utf8 DEFAULT COLLATE = utf8_unicode_ci (/vendor/yiisoft/yii2/db/Schema.php:678)
The text was updated successfully, but these errors were encountered: