Open noamza opened 1 month ago
I solved this by running the following on my mysql connection on localhost:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'newrootpassword'
and then connecting through dj with TLS set to false.
Bug Report
I cannot connect to my local mysql database
Description
I couldn't see in the documentation https://datajoint.github.io/datajoint-docs-original/matlab/index.html how I am supposed to connect but running dj.conn() does not seem to work, regardless of setting name, pw, host.
Reproducibility
Include:
OS (WIN
MATLAB Version 2024a
MySQL Version 8.0.38
MySQL Deployment Strategy (local-native
DataJoint Version 3.5.1
Minimum number of steps to reliably reproduce the issue dj.conn()
Complete error stack as a result of evaluating the above steps
Error using mym SSL connection error: unknown error number
Error in [dj.Connection/query](matlab:matlab.lang.internal.introspective.errorDocCallback('dj.Connection/query', 'C:\Users\noama\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\DataJoint+dj\Connection.m', 167)) ([line 167](matlab: opentoline('C:\Users\noama\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\DataJoint+dj\Connection.m',167,0))) self.connId=mym(-1, 'open', self.host, self.user, self.password, self.use_tls);
Error in [dj.conn](matlab:matlab.lang.internal.introspective.errorDocCallback('dj.conn', 'C:\Users\noama\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\DataJoint+dj\conn.m', 107)) ([line 107](matlab: opentoline('C:\Users\noama\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\DataJoint+dj\conn.m',107,0))) query(connObj, 'status')
Expected Behavior
see schemas
Screenshots
Additional Research and Context