2台机器:一台windows+mysql一台CentOS+hive(CentOS安装在上面windows下的虚拟机中)虚拟机网络状况良好,hive配置基本没错,mysql也创建了hive数据库。但是运行hive命令后,在mysql中生成元数据时出现错误:
java.sql.SQLException: Unable to open a test connection to the given database. JDBC url = jdbc:mysql://192.168.99.74:3306/hive, username = frank.
Terminating connection pool (set lazyInit to true if you expect to start your database after your app). Original Exception: ------
java.sql.SQLException: null, message from server: "Host '192.168.99.236' is not allowed to connect to this MySQL server"
是虚拟机不被访问外面的数据库?还是windows的mysql数据库不允许被别的机器访问?还是别的原因?跪求大神解答!
添加回答
举报
0/150
提交
取消