Skip to content

Commit

Permalink
Adding important DB tip for Windows local development
Browse files Browse the repository at this point in the history
  • Loading branch information
jegelstaff committed Nov 17, 2024
1 parent 88841c2 commit 5329d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/docker-db-help.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
IF YOUR DEVELOPMENT ENVIRONMENT IS WINDOWS
You should rename or copy the file: /docker/maraidb/conf.d/lower_case_table_names.cnf.windows to: /docker/maraidb/conf.d/lower_case_table_names.cnf (ie: remove the .windows part on the end).
You should rename or copy the file: /docker/maraidb/conf.d/lower_case_table_names.cnf.windows to: /docker/maraidb/conf.d/lower_case_table_names.cnf (ie: remove the .windows part on the end). Then make the file 'read-only' (it will be ignored by MariaDB if it is world writable).

This file will ensure that when MariaDB starts, it properly handles case sensitivity in your table names, and can handle identifiers in SQL dumps from a case sensitive production environment, like Linux. Note that any SQL produced locally, from phpMyAdmin for example, will be generated with lowercase identifiers, because internally MariaDB will be storing identifiers in lowercase on Windows. If the corresponding identifiers on the production environment include uppercase characters, you will run into issues when running SQL from your local environment in your production environment. This can be avoided by correcting any identifiers in the SQL before running it in production, to ensure it matches the case used on the production environment.

Expand Down

0 comments on commit 5329d89

Please sign in to comment.