-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mysql8.0 support error #2042
Comments
What's the result of non-docker? |
non-docker
new driver don't load ? |
Try the solution commented in #855 |
i see #855 first� |
java11下 java8下会加载新驱动,并且提示旧驱动废弃 |
参考下: nacos/distribution/bin/startup.sh Line 100 in 3a4de81
有可能是java版本判断错误,还以为是java8,导致加载的方式不对。 |
判断没错的,脚本执行的时候输出了最终语句,java11带ext是启动不起来的。
|
你参考这个,放到loader.path下试试: |
赞,这个行了
|
好的,稍后我再确认下是否loader.path对于java8一样有效。 |
我这边,统一用loader.path, java8和11都能加载新驱动 |
能否提一个PR共享一下? |
可以,没问题,一会得空就提一下 |
[ISSUE #2042] fix startup for java 11 and mysql8.0
Issue Description
Type: bug report
Describe what happened (or what feature you want)
mode: standalone
db: mysql8.0
start.out
Describe what you expected to happen
run ok
How to reproduce it (as minimally and precisely as possible)
i add
mysql-connector-java-8.0.18.jar
to/home/nacos/plugins/mysql-connector-java-8.0.18.jar
Tell us your environment
centos 8
docker-ce 19
mysql 8.0
Anything else we need to know?
i try to change application.properties 's mysql string
db.url.0=jdbc:mysql://${MYSQL_MASTER_SERVICE_HOST}:${MYSQL_MASTER_SERVICE_PORT:3306}/${MYSQL_MASTER_SERVICE_DB_NAME}?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
but no ok
The text was updated successfully, but these errors were encountered: