not get JDBC Connection; nested exception is java.sql.SQLException: No suitable driver found for jdbc:mysql-- MySQL database driver --> <groupId>mysql</groupId> <
在公司中,我们将一些应用程序迁移到Docker,但是应用程序已经连接到MySQL数据库。
我坚持的任务是应用程序在Docker上运行,以及应用程序I使用的MySQL数据库。但问题是数据库是空的。我需要连接到已经存在的DB,它是独立的服务器,或者将数据迁移到新创建的conternized。因此,我不知道哪一种方法最好,以及如何将已存在的db连接到已被篡改的应用程序中。a) Dockerize MySQL from official im