Я установил изображение MySQL с docker pull mysql
, и после того, как я создал контейнер docker run --name NAME -e MYSQL_ROOT_PASSWORD=PW -p 3306:3306 -d mysql:latest
, после этого я настроил Datagrip, я выбрал MySQL и
Name: localhost
Comment:
Host: localhost Port: 3306
User: root
Password: 123456 Save: Forever
Database:
Я щелкнул Test Connection
и появляется Successufl
, щелчок по Apply
после OK
. На терминале в папке проекта я запустил команду для запуска сервера yarn run dever
И появляется эта ошибка
Unable to connect to the database: ConnectionError [SequelizeConnectionError]: Client does not support authentication protocol requested by server; consider upgrading MySQL client
at /home/vagnerwentz/Documents/freelance/autoparanaiba-api/node_modules/sequelize/lib/dialects/mysql/connection-manager.js:133:19
at tryCatcher (/home/vagnerwentz/Documents/freelance/autoparanaiba-api/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/vagnerwentz/Documents/freelance/autoparanaiba-api/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/home/vagnerwentz/Documents/freelance/autoparanaiba-api/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/home/vagnerwentz/Documents/freelance/autoparanaiba-api/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/home/vagnerwentz/Documents/freelance/autoparanaiba-api/node_modules/bluebird/js/release/promise.js:725:18)
at _drainQueueStep (/home/vagnerwentz/Documents/freelance/autoparanaiba-api/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/home/vagnerwentz/Documents/freelance/autoparanaiba-api/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/home/vagnerwentz/Documents/freelance/autoparanaiba-api/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/home/vagnerwentz/Documents/freelance/autoparanaiba-api/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (internal/timers.js:439:21)
at process.topLevelDomainCallback (domain.js:130:23) {
name: 'SequelizeConnectionError',
parent: Error: Client does not support authentication protocol requested by server; consider upgrading MySQL client
at Packet.asError (/home/vagnerwentz/Documents/freelance/autoparanaiba-api/node_modules/mysql2/lib/packets/packet.js:708:17)
at ClientHandshake.execute (/home/vagnerwentz/Documents/freelance/autoparanaiba-api/node_modules/mysql2/lib/commands/command.js:28:26)
at Connection.handlePacket (/home/vagnerwentz/Documents/freelance/autoparanaiba-api/node_modules/mysql2/lib/connection.js:408:32)
at PacketParser.onPacket (/home/vagnerwentz/Documents/freelance/autoparanaiba-api/node_modules/mysql2/lib/connection.js:70:12)
at PacketParser.executeStart (/home/vagnerwentz/Documents/freelance/autoparanaiba-api/node_modules/mysql2/lib/packet_parser.js:75:16)
at Socket.<anonymous> (/home/vagnerwentz/Documents/freelance/autoparanaiba-api/node_modules/mysql2/lib/connection.js:77:25)
at Socket.emit (events.js:223:5)
at Socket.EventEmitter.emit (domain.js:475:20)
at addChunk (_stream_readable.js:309:12)
at readableAddChunk (_stream_readable.js:290:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead (internal/stream_base_commons.js:181:23) {
code: 'ER_NOT_SUPPORTED_AUTH_MODE',
errno: 1251,
sqlState: '08004',
sqlMessage: 'Client does not support authentication protocol requested by server; consider upgrading MySQL client'
},
original: Error: Client does not support authentication protocol requested by server; consider upgrading MySQL client
at Packet.asError (/home/vagnerwentz/Documents/freelance/autoparanaiba-api/node_modules/mysql2/lib/packets/packet.js:708:17)
at ClientHandshake.execute (/home/vagnerwentz/Documents/freelance/autoparanaiba-api/node_modules/mysql2/lib/commands/command.js:28:26)
at Connection.handlePacket (/home/vagnerwentz/Documents/freelance/autoparanaiba-api/node_modules/mysql2/lib/connection.js:408:32)
at PacketParser.onPacket (/home/vagnerwentz/Documents/freelance/autoparanaiba-api/node_modules/mysql2/lib/connection.js:70:12)
at PacketParser.executeStart (/home/vagnerwentz/Documents/freelance/autoparanaiba-api/node_modules/mysql2/lib/packet_parser.js:75:16)
at Socket.<anonymous> (/home/vagnerwentz/Documents/freelance/autoparanaiba-api/node_modules/mysql2/lib/connection.js:77:25)
at Socket.emit (events.js:223:5)
at Socket.EventEmitter.emit (domain.js:475:20)
at addChunk (_stream_readable.js:309:12)
at readableAddChunk (_stream_readable.js:290:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead (internal/stream_base_commons.js:181:23) {
code: 'ER_NOT_SUPPORTED_AUTH_MODE',
errno: 1251,
sqlState: '08004',
sqlMessage: 'Client does not support authentication protocol requested by server; consider upgrading MySQL client'
}
}