2010-10-20 178 views
0

我想用一個工具MySQL的遷移工具包,但是當工具正在建立數據庫連接我收到此錯誤遷移從SQL Server 2008到MySql數據庫:將數據庫從Sql Server 2008遷移到MySql?

Connecting to source database and retrieve schemata names. 
Initializing JDBC driver ... 
Driver class MS SQL JDBC Driver 
Opening connection ... 
Connection jdbc:jtds:sqlserver://localhost:1433/Northwind;user=sa;password=;charset=utf-8;domain= 
The list of schema names could not be retrieved (error: 0). 
ReverseEngineeringMssql.getSchemata :Login failed for user 'sa'. 
Details: 
net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:365) 
net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2781) 
net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2224) 
net.sourceforge.jtds.jdbc.TdsCore.login(TdsCore.java:599) 
net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:331) 
net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50) 
net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:178) 
java.sql.DriverManager.getConnection(Unknown Source) 
java.sql.DriverManager.getConnection(Unknown Source) 
com.mysql.grt.modules.ReverseEngineeringGeneric.establishConnection(ReverseEngineeringGeneric.java:141) 
com.mysql.grt.modules.ReverseEngineeringMssql.getSchemata(ReverseEngineeringMssql.java:99) 
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) 
在SQL Server

我還沒有用戶名和密碼要連接到數據庫(窗口驗證),所以在SQL的連接參數中插入用戶名字段=「sa」並留空字段密碼。

你知道爲什麼我收到這個錯誤,以及如何解決這個問題?

非常感謝您的關注。

乾杯:)

+0

待辦事項執行遷移你完全控制了連接字符串?你能刪除用戶名嗎?請參閱http://msdn.microsoft.com/en-us/library/ff647396.aspx – MikeAinOz 2010-10-20 04:36:37

+0

嗨MikeAinOz,如果我刪除用戶名toolKit否認我轉到下一頁,而不是在連接字符串,我把它留空。:) – JayJay 2010-10-20 04:53:00

回答

3

嘗試使用SQL Examiner Suite 2010:工具遷移表/視圖/用戶和數據,並具有全功能30天試用,所以你可以試用版:)

相關問題