In Deno
I’m using this module https://deno.land/x/[email protected]/mod.ts
to connect to mySQL 8 database in Windows 10 and generally it works fine.
However, after a fresh start or reboot, when it tries to connect to the DB I get the following error:
Uncaught (in worker "") (in promise) Error: Access denied for user 'root'@'localhost' (using password: YES) throw new Error(error.message);
I keep getting the same error until I connect to the db with MySQL Workbench
. After that, then Deno can successfully connect to the DB even if I close MySQL Workbench
, until next reboot.