node.js连接数据库出现错误
Failed to connect to database: Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
该怎么解决
node.js连接数据库出现错误
Failed to connect to database: Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
该怎么解决
根据错误提示,是nodejs提供的mysql连接协议过低,需要升级。
要么使用更高版本的nodejs,要么使用较低版本的mysql