Skip to content
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

Nacos+MySQL8 startup error #855

Merged
merged 3 commits into from
Mar 14, 2019
Merged

Nacos+MySQL8 startup error #855

merged 3 commits into from
Mar 14, 2019

Conversation

paderlol
Copy link
Collaborator

@paderlol paderlol commented Mar 2, 2019

Issue:

#852 #613

The solution

Use class.forname to determine which version of the database driver to use,And Use Class.forName to determine which version of the database driver to use, and put the driver Jar in the plugins directory. By default, use mysql-connector-java-5.1.34.jar.

Good point

  • The expansion of other types of database-driven to become more flexible,You just need to put the database driver you want to use in it. eg. Mysql 8.0/Oracle

Usage

If you need to use the Mysql 8.0 database, you can put Mysql 8.0 database driver on xx/nacos/plugins/mysql Directory

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ paderlol
❌ pader.zhang


pader.zhang seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Collaborator

@yanlinly yanlinly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok
Please add design documents and usage documents.

@wowtrxqn
Copy link

If you need to use the Mysql 8.0 database, you can put Mysql 8.0 database driver on xx/nacos/plguins/mysql Directory

it seems not be work。
at least test failed In my window environment。
In the DIngDing nacos talking-group of more than 2,000 people, I asked a day of questions about mysql8, no one help solved。

@duwei54
Copy link

duwei54 commented May 6, 2019

I meet the same issue. My environment is:
win10
mysql 8.0.11
nacos 1.0

@wowtrxqn
Copy link

wowtrxqn commented May 6, 2019

I meet the same issue. My environment is:
win10
mysql 8.0.11
nacos 1.0

succeed in linux, error in win10

@duwei54
Copy link

duwei54 commented May 8, 2019

I solved my problem by change the mysql config character_set_server to utf8.
I set it to utf8mb4 after mysql installed.but it seems not be supported.

@b1ghawk
Copy link

b1ghawk commented Jan 6, 2020

This doesn't work on Windows. 💔
By checking that code, I found a definitive error as pasted below :
%BASE_DIR%\plugins\cmdb:%BASE_DIR%\plugins\mysql < a semicolon instead of a colon should be used.
Again, this error still exists.

@firstLeon
Copy link

我遇到同样的问题。我的环境是:
win10
mysql 8.0.11
nacos 1.0

我在set "JAVA_OPT=%JAVA_OPT% -Dloader.path这里加上%BASE_DIR%\plugins\mysql解决了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants