9月28日

sqoop在连接mysql的时候报这样的错

java.sql.SQLException: The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the 'serverTimezone' configuration property) to use a more specific time zone value if you want to utilize time zone support.

 

经过调试需要这样的请求语句

bin/sqoop list-databases -connect jdbc:mysql://192.168.43.244:3306/?serverTimezone=UTC --username root --password root

加上该属性即可访问 mysql;

posted @ 2021-09-28 22:47  不咬牙  阅读(28)  评论(0编辑  收藏  举报