我正在尝试将SailsJS连接到MySQL
default: {
adapter: require('sails-mysql'),
url: 'mysql://root:root@localhost/ventas'
},
但是每当我执行'sails lift'时,就会出现以下错误:
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) }
我只是使用 sails 自带的 Web 应用模板,没有添加任何代码。
有什么想法吗?