NetBeans connecting various configurations mysql

NetBeans mysql connection has been unsuccessful, yesterday afternoon and today morning finally fully resolved, a combination of a lot of online tutorials, I hope you can solve your problem.

1.NetBeans8.2 version, mysql8.017 version, mysqlworkbench8.017 version, recommended to install the latest version of mysql, and then configure and connect mysqlworkbench the mysql (I respectively in the official website to download)

  Open workbench can be connected directly to a local mysql, other new connections please refer to other online tutorials, and then create a book list, fill in the data, to facilitate testing later (under bin directory configure mysql my.ini, reference rookie tutorial)

2NetBeans connection configuration mysql renderings

Specific configuration parameters

3. Before connecting directly with drivers mysql, can be successful, need to change time zones,? ServerTimezone = UTC

4 But when you start prompt area right now change the time zone

set global time_zone = '+8:00'; ##修改mysql全局时区为北京时间,即我们所在的东8区

 

set  time_zone =  '+8:00' ; ##修改当前会话时区
 
> flush  privileges ; #立即生效

(Reference Links: https://blog.csdn.net/zqb765720343/article/details/80076020 )

And then start again to success

 

Guess you like

Origin www.cnblogs.com/jiexing/p/11428157.html