문제

Windows에서 MySQL 마이그레이션 툴킷 GUI를 실행하려고하면 Java가 설치되어 있지 않은 오류가 발생합니다.Java가 설치되지만 마이그레이션 툴킷은이를 인식하지 못합니다.아무도이 문제를 해결하는 방법을 알고 있습니까?

도움이 되었습니까?

해결책

최근 MySQL Workbench 버전과 함께 제공되는 새로운 마이그레이션 마법사를 사용해야합니다.MySQL 마이그레이션 툴킷은 몇 년 전에 단계적으로 펼쳐지 었으며 활성 개발 중이 아닙니다.

마이그레이션 마법사의 자습서는 "nofollow"> 하위 : Microsoft SQL Server에서 데이터베이스 마이그레이션에 대한 안내서를 살펴보십시오.MySQL Workbench를 사용하여 .

다른 팁

이이 작업을 수행하기 위해 솔루션이 실제로 쉽습니다. 폴더로 이동 MySQL 마이그레이션 툴킷을 설치했습니다. 바로 가기를 만드십시오.실행 파일 mysqlmigrationtool.exe 의 바탕 화면에
그런 다음 방금 작성한 바로 가기를 마우스 오른쪽 버튼으로 클릭하고 타겟 이 다음과 같이 수정합니다

"C:\Program Files (x86)\MySQL\MySQL Migration Toolkit 1.0\MySQLMigrationTool.exe" -verbose -jvm **The Path to your 32bit jvm.dll** 
. jre1.8.0_45 와 함께 설치를 위해

e.g

"C:\Program Files (x86)\MySQL\MySQL Migration Toolkit 1.0\MySQLMigrationTool.exe" -verbose -jvm ***"C:\Program Files (x86)\Java\jre1.8.0_45\bin\client\jvm.dll"***
.

Anyway, if there's still somebody struggling with the MySQL Migration Toolkit and jre 1.8 I would suggest to stop bothering because after fixing the boot by setting the jvm.dll it fails performing the Reverse Engeneering step with this message:

    The schema could not be reverse engineered (error: 0).
ReverseEngineeringAccess.reverseEngineer :sun.jdbc.odbc.JdbcOdbcDriver
Details: 
java.net.URLClassLoader.findClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Unknown Source)
com.mysql.grt.modules.ReverseEngineeringGeneric.establishConnection(ReverseEngineeringGeneric.java:84)
com.mysql.grt.modules.ReverseEngineeringAccess.reverseEngineer(ReverseEngineeringAccess.java:92)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.lang.reflect.Method.invoke(Unknown Source)
com.mysql.grt.Grt.callModuleFunction(Unknown Source)

I got the tool running and migrated most of the tables but is not happy with the result because many table creation failed. Still it is useful since I got the script so that I can edit it later. I used these versions

Migration Toolkit 1.0.25

IBM JRE 5.0 (I had this in system) - Had to set the JVM as mentioned by John.

Use Oracle JDBC driver for your database(12c ojdbc8) but it must be renamed to ojdbc14.jar and use.

Delete mysql-connector-java-3.1... files(3 files) from MySQL Migration Toolkit 1.0\java\lib and place mysql-connector-java-5.1.44.jar

Run the tool.

I used mysql_native_password for the MySQL user :- ALTER USER 'mysqluser'@'%' IDENTIFIED WITH mysql_native_password BY 'pass';

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top