Replies: 7 comments 19 replies
-
Moving this to discussion as it's more so a question, and the PR itself and a response to your previous semi-related ticket does touch upon on it, but perhaps @Oreilles can shed more light on the questions/doubts you may have. |
Beta Was this translation helpful? Give feedback.
-
Directus warns you if your tables aren't in the same collation as the database default. This is because Directus will rely on the database default collation when creating new tables/columns, which can cause conflicts when you try to make relationships between tables/columns created in Directus and the ones in the database. |
Beta Was this translation helpful? Give feedback.
-
Debian 11
2d0c23d generates utf8mb4_bin warnings on a clean directus installation
|
Beta Was this translation helpful? Give feedback.
-
Had the same issue on a fresh install: 2nd issue: env variable was set to 0.0.0.0 instead of 127.0.0.1 after fresh install -had to manually correct it. Then everything ran ok. |
Beta Was this translation helpful? Give feedback.
-
Debian 11
15:58:49
On Debian 11 and MariaDB 10.5.12 all Directus LONGTEXT columns have the collation utf8mb4_bin independent of my database charset and collation settings. |
Beta Was this translation helpful? Give feedback.
-
It seems that after running The Database: MariaDB 10.4, doesn't happen in MySQL 5.7 |
Beta Was this translation helpful? Give feedback.
-
I've created #14787 to fix this issue, which is now closed. |
Beta Was this translation helpful? Give feedback.
-
Preflight Checklist
Describe the Bug
2d0c23d
warning for directus tables utf8mb4_bin
warning for directus tables utf8mb4_bin
warning for directus tables utf8mb4_bin
warning for directus tables utf8mb4_bin
warning for directus tables utf8mb4_general_ci
warning for collection tables created by directus utf8mb4_general_ci
warning for custom tables != utf8mb4_unicode_ci
This commit will show warning messages for any directus installation.
Are directus table collation warnings necessary?
Do directus and custom tables need the same collation?
Is there any problem as long as custom tables have the same collation independent of the databases default?
To Reproduce
npm install directus --production --no-optional
npm install mysql --production
npx directus bootstrap
Errors Shown
root@debian /s/h/directus# /usr/bin/node /srv/http/directus/node_modules/.bin/directus start⚠️ PUBLIC_URL should be a full URL⚠️ Some tables and columns do not match your database's default collation (utf8mb4_unicode_ci):
09:24:21
09:24:21
- Table "directus_users": "utf8mb4_unicode_ci"
- Column "tags": "utf8mb4_bin"
- Column "auth_data": "utf8mb4_bin"
- Table "directus_presets": "utf8mb4_unicode_ci"
- Column "layout_query": "utf8mb4_bin"
- Column "layout_options": "utf8mb4_bin"
- Column "filter": "utf8mb4_bin"
- Table "directus_files": "utf8mb4_unicode_ci"
- Column "metadata": "utf8mb4_bin"
- Table "directus_settings": "utf8mb4_unicode_ci"
- Column "storage_asset_presets": "utf8mb4_bin"
- Column "basemaps": "utf8mb4_bin"
- Column "module_bar": "utf8mb4_bin"
- Table "directus_revisions": "utf8mb4_unicode_ci"
- Column "data": "utf8mb4_bin"
- Column "delta": "utf8mb4_bin"
- Table "directus_webhooks": "utf8mb4_unicode_ci"
- Column "headers": "utf8mb4_bin"
- Table "directus_permissions": "utf8mb4_unicode_ci"
- Column "permissions": "utf8mb4_bin"
- Column "validation": "utf8mb4_bin"
- Column "presets": "utf8mb4_bin"
- Table "directus_panels": "utf8mb4_unicode_ci"
- Column "options": "utf8mb4_bin"
- Table "directus_fields": "utf8mb4_unicode_ci"
- Column "options": "utf8mb4_bin"
- Column "display_options": "utf8mb4_bin"
- Column "translations": "utf8mb4_bin"
- Column "conditions": "utf8mb4_bin"
- Table "directus_collections": "utf8mb4_unicode_ci"
- Column "translations": "utf8mb4_bin"
- Column "item_duplication_fields": "utf8mb4_bin"
09:24:21 ✨ Server started at http://localhost:8055
What version of Directus are you using?
9.5.1
What version of Node.js are you using?
16.13.2
What database are you using?
MariaDB 10.5.12
What browser are you using?
Firefox 97
What operating system are you using?
Debian 11
How are you deploying Directus?
Locally
Beta Was this translation helpful? Give feedback.
All reactions