"Not supported" error
See original GitHub issueHi! I am trying to use this module in my application, but I receive an error “Not supported” whenever I try to connect. I shouldn’t have any options which would cause the issue, but am I doing something wrong? Also, if it has anything to say, I am using the docker image of mysql:latest for the db, and Deno 0.41.0
Here is my code:
import { Client, ClientConfig } from "https://deno.land/x/mysql/mod.ts";
const config: ClientConfig = {
hostname: "localhost",
port: 5001,
username: "root",
password: "pwd",
db: "test",
debug: true
}
const client = await new Client().connect(config);
console.log(await client.query("select 1 from nessie_migrations limit 1;"))
And here is the error:
$ deno run --allow-net --allow-read test.ts
Compile file:///Users/halvardssm/dev/mix/deno-nessie/test.ts
INFO connecting localhost:5001
error: Uncaught Error: Not supported
► auth.ts:43:13
43 throw new Error("Not supported");
^
at auth (auth.ts:43:13)
at buildAuth (auth.ts:42:24)
at Connection._connect (connection.ts:53:18)
at async Connection.connect (connection.ts:82:5)
at async Client.createConnection (client.ts:45:5)
at async DeferredStack.pop (deferred.ts:33:20)
at async Client.useConnection (client.ts:109:24)
at async Client.query (client.ts:89:12)
at async test.ts:14:13
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:11 (3 by maintainers)
Top Results From Across the Web
not supported error when I try and import local module ...
I have a local module (speech.js) in my create-react-app src folder that is the google text to speech code on their website. I...
Read more >Fixing “This Plugin is Not Supported” error in Windows 10/11
1. Enable Flash in Chrome. 2. Install the latest Flash player; Update Flash:Clear the browsing data in Chrome. 3. Use another browser to...
Read more >It says my system is not supported – what do I do?
If you are hitting an error that says some part of your system is not supported, view below for some tips on how...
Read more >Resolve 'Your browser is not supported...' error - Apex ...
The following error appears when opening the TMCM/Apex Central™ WebUI in IE11: Your browser is not supported. upgrade to the latest version of...
Read more >"Cannot play back the file. The format is not supported. ...
Cause · One or more Windows Media Player files are missing or damaged. · You are trying to play a media file that...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I didn’t have much luck with that approach, but changing the MySQL configuration itself worked just fine.
In the
[mysqld]section of my MySQL configuration file I addeddefault_authentication_plugin=mysql_native_password@manyuanrong, I think this solution might be slightly better than blank passwords, yes?
Hello, any news on supporting
caching_sha2_password? Thanks.