Skip to content

Fix/db setup mysql8 - #14

Merged
alexevag merged 3 commits into
mainfrom
fix/db-setup-mysql8
Sep 7, 2026
Merged

Fix/db setup mysql8#14
alexevag merged 3 commits into
mainfrom
fix/db-setup-mysql8

Conversation

@alexevag

@alexevag alexevag commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

alexevag and others added 3 commits August 31, 2026 14:48
A fresh install could not connect to the database it had just created.

- Bump the generated docker-compose.yaml from datajoint/mysql:5.7 to datajoint/mysql:8. MySQL 5.7 offers only a SHA-1 cipher suite, which current Python refuses to negotiate, so any environment built after PyMySQL 1.2.0 (May 2026) failed with SSLV3_ALERT_HANDSHAKE_FAILURE. On mysql:8 the connection works and is genuinely encrypted. Pinning pymysql<1.2 was rejected: it hides the problem instead of fixing it.

- Warn when a data_* directory already exits MYSQL_ROOT_PASSWORD only when initialising an empty data directory, so a leftover one silently kept its old pasin a bare "Access denied for user 'root'".

- Use sys.executable rather than a bare `python` when creating schemas.
Resolved src/ethopy/setup_db.py: kept main's _run_import helper and moved
this branch's sys.executable fix into it, so both the core schema loop and
the new plugin import loop use the interpreter EthoPy is installed in.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GiYtKt18XS7fJCpjhB2iyB
@alexevag
alexevag merged commit b5800dd into main Sep 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant