I'm trying to connect SailsJS with MySQL
default: {
adapter: require('sails-mysql'),
url: 'mysql://root:root@localhost/ventas'
},
But whenever I do a 'sails lift' I get the following error:
error: A hook (`orm`) failed to load!
error:
error: { error:
{ Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
at Handshake.Sequence._packetToError (C:\ticket\node_modules\mysql\lib\protocol\sequences\Sequence.js:48:14) }
I'm just using the web app template that comes with sails with no added code.
Any ideas?