【发布时间】:2018-04-24 13:24:25
【问题描述】:
当我尝试docker-compose -f docker-compose-now.yml up 时,我收到了这条消息
error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
现在,我确实阅读了这个解决方案:
use mysql;
update user set authentication_string=password(''), plugin='mysql_native_password' where user='root';
来自:https://github.com/mysqljs/mysql/issues/1507
但我怎样才能把它放在我的docker-compose-now.yml 文件中的entrypoints 中?
我的环境在这个文件中,当我尝试时:
entrypoints: sh "update user set authentication_string=password(''), plugin='mysql_native_password' where user='root'"
我只得到另一个错误。
请问我该如何解决?
【问题讨论】:
标签: mysql docker docker-compose dockerfile