I'm trying to connect to a MySQL database. I've seen quite a few different methods (some of which are conflicting and seem to be outdated) of connecting but haven't managed to get any to work so far.
The following code gives an error message:
Needs["DatabaseLink`"]
OpenSQLConnection[
JDBC["MySQL(Connector/J)", "ip/database"],
"Version" -> 3.1, "Catalog" -> Automatic, "Description" -> None,
"autoReconnect" -> True, "Password" -> "xxxx",
"Properties" -> {"useSSL" -> "False"}, "ReadOnly" -> Automatic,
"RelativePath" -> False,
"TransactionIsolationLevel" -> Automatic,
"UseConnectionPool" -> Automatic, "Username" -> "root",
"Timeout" -> 1000]
(* JDBC::error: Unable to load authentication plugin 'caching_sha2_password' *)
Any help/suggestions with this would be much appreciate, thanks in advance!
localhost
or127.0.0.1
instead. That is:OpenSQLConnection[JDBC["MySQL(Connector/J)", "127.0.0.1/database"], ...]]
Please let us know if this works. $\endgroup$