Quantcast
Channel: MySQL Forums - MySQL Workbench - Database Migration
Viewing all 560 articles
Browse latest View live

Sybase Migration (3 replies)

$
0
0
I work in a University Library and we are moving to a new library system. The move does not include historical data and I'm hoping to migrate our current Sybase db to MySql database so we can refer to it for future use. (essential for some financial information)

I'm having problems with the Mysql Workbench Migration from Sybase.
I'm using Workbench 6.2 on Windows 7. ODBC to connect to Sybase ASE 15. Mysql 5.5.1

All seems well through the wizard. Connections seem ok. the database structure is created successfully in MySQL. The problem comes at the actual migration of data, nearly all tables fail (but not all).

The tables fail due to a type mismatch.
eg from the logs
ERROR: `prod_talis`.`ITEM_DESCRIPTION_TYPE`:Type mismatch fetching field 2 (should be char, was MYSQL_TYPE_STRING)
ERROR: `prod_talis`.`ITEM_DESCRIPTION_TYPE`:Failed copying 666 rows
`prod_talis`.`ITEM_QUERY`:Copying 19 columns of 27728 rows from table [prod_talis].[dbo].[ITEM_QUERY]
ERROR: `prod_talis`.`ITEM_QUERY`:Type mismatch fetching field 1 (should be long, was MYSQL_TYPE_STRING)
`prod_talis`.`ITEM_CHECK_IN`:Copying 17 columns of 147524 rows from table [prod_talis].[dbo].[ITEM_CHECK_IN]
ERROR: `prod_talis`.`ITEM_CHECK_IN`:Type mismatch fetching field 1 (should be long, was MYSQL_TYPE_STRING)
ERROR: `prod_talis`.`ITEM_QUERY`:Failed copying 27728 rows


Looking at one field as an example: ITEM_DESCRIPTION_TYPE.SUB_TYPE (field 2 in that table)

The actual Sybase type is tinyint.

At the Source Migration stage we get the following warning
WARNING: Sybase reverseEngineerTableColumns: Column datatype "TYPE" for column "SUB_TYPE" in table "dbo.ITEM_DESCRIPTION_TYPE" reverse engineered as VARCHAR(255)

Oddly the 'Source Type' for SUB_TYPE is listed as VARCHAR(255) Manual editing screen.

And finally at the migration stage it fails the whole table with
ERROR: `prod_talis`.`ITEM_DESCRIPTION_TYPE`:Type mismatch fetching field 2 (should be char, was MYSQL_TYPE_STRING)


Any idea what we can do here?
It looks like the issue is identifying field data types correct in Sybase. It's also odd that the process refers to the same SOURCE field as "TYPE, VARCHAR and char".
With hundreds of tables and thousands of fields this will be very tricky to resolve manually.

Any pointers appreciated?!

Kind Regards
Chris Keene

Migrate Wizard Problem - Migrate from MS SQL to MySQL (no replies)

$
0
0
Hello everyone,

I have the following problem and although I can not select anything in the Migration Wizard, everything seems disabled.

I wanted to import data from a MS SQL table in a MySQL table
So update the data.

ODBC drivers are installed,
to the MySQL database I am connected.

As I said I can select in the migration options nothing
regardless of whether the source DB nor anything else.

Thank you in advance for advice and tips

Best Regards
-Steve-

PS: I am using MySQL Workbench 6.2 CE (run as admin)

5.0.51a-3ubuntu5.4-log (no replies)

$
0
0
Hi:

I need help with the following issue.

I need to migrate data bases from 5.0.51a-3ubuntu5.4-log to 5.5.20-log MySQL Community Server (CentOs). there is a known compatibility issue?

Tks for ur help.

DB migration from Btrieve (PSQL) to MySQL (no replies)

$
0
0
Hello everyone,

I'm trying to migrate db from Btrieve (PSQL) to MySQL using MySQL Workbench's Database Migration Wizard. For this i have used ODBC data source as source but the process generates error while Fetching Schemas List.

I have checked for: -
ODBC drivers are installed
MySQL database works fine

The error log: -
----------------------------------------------------------------------------------
Starting...
Connect to source DBMS...
- Connecting to source...
Connect to source DBMS done
Check target DBMS connection...
- Connecting to target...
Check target DBMS connection done
Retrieve schema list from source....
- Checking connection...
- Fetching catalog names...
- Fetching schema names...
- Fetching schema names from DEMODATA...

Traceback (most recent call last):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\workbench\wizard_progress_page_widget.py", line 192, in thread_work
self.func()
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\modules\migration_source_selection.py", line 439, in task_fetch_schemata
self.main.plan.migrationSource.doFetchSchemaNames(only_these_catalogs)
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\modules\migration.py", line 255, in doFetchSchemaNames
self.state.sourceSchemataNames.append("%s.%s" % (self._db_module.quoteIdentifier(catalog), self._db_module.quoteIdentifier(schema)))
TypeError: DbGenericRE.quoteIdentifier(): argument 1 must be a string but is None
ERROR: Retrieve schema list from source: DbGenericRE.quoteIdentifier(): argument 1 must be a string but is None
Failed
----------------------------------------------------------------------------------

any help please? I just want to migrate brtieve db to MySQL/Oracle.

Thank you in advance.

Best Regards
-Anubhav-

How to install ODBC driver using "Open ODBC Administrator" mentu (6 replies)

$
0
0
Hi,

I am using MySQL Workbench 6.2.5 commercial with CentOS 6.6 trying to perform
tables and data migration from SQL SErver 2008 to MySQL 5.6.23.

In order to do that I need to install ODBC driver. I was able to compile the
iODBC driver according to the MySQL Workbench documentation on the page:
http://dev.mysql.com/doc/workbench/en/wb-migration-database-mssql-drivers-linux.html

Now I have to install the driver using Workbench, but I could not find documentation describing how to do that.
I tried to use Workbench's "Open ODBC Administrator" menu for that, but it has a lot of different options,
so I am not sure what commands and menues I suppose to use.

Could you help me with the installation of ODBC driver using "Open ODBC Administrator" menu?

Thank you,

Jacob Nikom

Null values in csv file with insert data (no replies)

$
0
0
Hi,

if I want import csv file with null values into the Workbench, it is big deal for trained monkey to set all cells to null, because all null values are inserted as 'NULL'. Csv import not support null value in insert (I understand, it is string NULL in csv). But either It is not possible to select multiple cells and change it to null.

Any solution to set any string in csv or anything else which workbench accept as null and not 'NULL'?

Very thanks for reply.

Ondrej

Arabic characters converted to "???????????" (1 reply)

$
0
0
Hi,
I have a sql server database which contains Arabic characters using UTF8. However, I decided to migrate my data from SQL Server to MySQL .
MySQLWorkbench migrated my database perfectlly but the Arabic characters converted to "?????????????????".

my project might be declined because of this , so please help

Why 64 bit MySQL installer installs 32 bit workbench (3 replies)

$
0
0
Hi all, I had downloaded 64 bit mysql-installer-community-5.6.15.0.msi.

But when I install it, only the MySQL server, C++, C and ODBC connectors where installed as 64 bit version inside c:\program files\MySQL... but other components like workbench and connectors like .net, Java, MySQL for Excel, visual studio were installed as 32 bit version inside c:\program files(x86)\MySQL....

Write now I'm not bothered about others but why the workbench has installed as 64 bit? It didn't even ask for which bit of workbench has to be installed.

Thank you.

Migrating new database to live database server with changes (1 reply)

$
0
0
Hi guys,

Recently I am working on project where I have made some changes to database definition by adding new fields and some new tables to database on local server. I already have live database with some data in it. Now I want to reflect the changes of database definition to live database. Could you please let me know procedure for the same.


Thanks.

I am using MySQL workbench 6.2try to migrated MS Access to MySQL via DNS ODBC connection, after configure the ODBC and perform "Test Connection" and got an error message "Test source DBMS connection Operation Cancelled" (no replies)

$
0
0
Hi,

Mark Nguyen posted this about a year ago, but there was really no resolution under that thread. I'm trying to migrate Access to MySQL and am following the directions on MySQL workbench 6.3.4, but when I test the connection, it says connection cancelled. There are really no troubleshooting steps from there. I'm running Windows 7 64 bit, if that helps. I ran it from command line with the debug log option, but I have no idea what to do with that information. Any help would be appreciated. Thanks.

Bug in workbench data migration script (no replies)

$
0
0
Hi-

I originally posted this under Newbies, and someone suggested that I post it as a bug now that I found a solution. I couldn't find a thread for just bug reporting.

--

My SQL workbench v. 6.3.4.0 64 bit.
Migrating from Access .accdb (2010)

I get this error (or something like it) on most of my tables during the migration SQL script review:


ERROR: Error executing 'CREATE TABLE IF NOT EXISTS `InvertData_TESTCopy3_be`.`tblPCRsamples` (
`VialID` VARCHAR(50) NULL COMMENT '',
`PCRPlate` VARCHAR(50) NOT NULL COMMENT '',
`PCRWell` VARCHAR(50) NOT NULL COMMENT '',
`PCRresult` VARCHAR(255) NULL COMMENT '',
`fivecycleredo` VARCHAR(10) NULL COMMENT '',
`FinalResult` VARCHAR(50) NULL COMMENT '',
PRIMARY KEY (`PCRPlate`, `PCRWell`) COMMENT '',
CONSTRAINT `{94D83037-86D5-49E4-B0FD-34AE34CEDE1A}`
FOREIGN KEY (`PCRWell`)
REFERENCES `InvertData_TESTCopy3_be`.`tblListWells` (`Well`)
ON DELETE RESTRICT
ON UPDATE RESTRICT,
CONSTRAINT `{E3A31516-8923-4698-A429-3F244CA968DF}`
FOREIGN KEY (`FinalResult`)
REFERENCES `InvertData_TESTCopy3_be`.`tblListPCRResults` (`FinalResult`)
ON DELETE RESTRICT
ON UPDATE RESTRICT,
CONSTRAINT `{80503C8F-1844-4E52-BC34-935DF141BFBB}`
FOREIGN KEY (`VialID`)
REFERENCES `InvertData_TESTCopy3_be`.`tblMaster` (`VialID`)
ON DELETE CASCADE
ON UPDATE CASCADE,
CONSTRAINT `{2D98A0ED-3A04-413D-976D-3787C91A9FCF}`
FOREIGN KEY (`PCRPlate`)
REFERENCES `InvertData_TESTCopy3_be`.`tblPCRplates` (`PCRPlate`)
ON DELETE CASCADE
ON UPDATE CASCADE)'
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'COMMENT '',
CONSTRAINT `{94D83037-86D5-49E4-B0FD-34AE34CEDE1A}`
FOREIGN KE' at line 8.
SQL Error: 1064

FIX-

But, I did figure out the problem. For some reason it didn't like the comment after INDEX `{80503C8F-1844-4E52-BC34-935DF141BFBB}` (`VialID` ASC) COMMENT '',
INDEX `VialID` (`VialID` ASC) COMMENT '',


So I deleted the COMMENT '' to make it look like this:
INDEX `{80503C8F-1844-4E52-BC34-935DF141BFBB}` (`VialID` ASC),
INDEX `VialID` (`VialID` ASC),

And locked the edited scripts that were automatically produced by MySQL workbench.

It had no problem with the previous COMMENT '' commands, so I left those.

Then it worked.

The rest of the import steps worked (mostly).

Workbench Access to MySQL migration issue (no replies)

$
0
0
I'm experiencing the same problem as David Plott () October 09, 2014 01:03PM while reverse Engineering a MSAccess database to MySQL.

See: http://forums.mysql.com/read.php?104,621787,621787#msg-621787

I've tried the recommended patch, but the Python 2.7.9 compiler rejects the Continue statement (not inside a loop). If I remove the statement, recompile the pyc and then retry the test I get to this error instead:

SystemError: TypeError("'NoneType' object has no attribute '__getitem__'"): error calling Python module function DbMsAccessRE.getSchemaNames
ERROR: Retrieve schema list from source: TypeError("'NoneType' object has no attribute '__getitem__'"): error calling Python module function DbMsAccessRE.getSchemaNames
Failed

Still an issue with the 'NoneType' object (original complaint was no attribute 'columns'. So I think that the patch is both itself bad as well as doesn't address the underlying problem.

I'm using Workbench 6.2 CE (6.2.5.0 Build 397, 32-bit) on Win7, and MSAccess from Office365.

Your help greatly appreciated!

-----
paul

Wrong number of columns in target DB (no replies)

$
0
0
We are using MySQL Workbench 6.2 Migration wizard to migrate data. Our source table and destination table have different numbers of columns. Say, the source table has 16 and destination table has 18.

When we migrate, Workbench says Error wrong number of columns in target DB.

Do the source and destination table columns numbers to be same? Or is there some way to tell Workbench default or derived values for the destination table columns?

Adaptative Server Anywhere to My SQL (no replies)

$
0
0
Hello,

I need to migrate a data base which is in my local computer to a remote server. The local DB runs in Adaptative Server Anywhere 9.0.2.2451 RDBMS while the remote server uses Maria DB 10.0.20 (which is completely compatible with MySQL).

After some research I've found out I could use a ODBC driver to enable the migration. So I am using Sybase SQL Anywhere 9.0 drive and Workbench 6.0. But since I am a complete beginner on IT I am struggling to fill the migration wizard form of the workbench. So I ask:

1-On the Source Selection tab:
a)There is a Driver field which I should put the ODBC Drive'name. Where do I get the right name of the driver?
b)There is a hostname and port fields, I believe since the DB is on my local computer I can leave it blank, right?
c)There is an additional arguments to be used in ODBS String, should I pass any?

Is there a way to "capture" a specific error code? (no replies)

$
0
0
Is it possible to capture an error code? I am trying to set up an automated data migration process. Part of the process is to write to an audit table. I would like to indicate whether or not the job succeeded. If not, I would like to write the exact error message that was thrown.

character set problem (no replies)

$
0
0
Hi!

I have an issue with MS SQL to MySQL migration.
The database migration is OK, but in the database the words with hungarian accented character are truncated. After many attempts I tried it with collation latin2_hungarian_ci (during manual mapping objects of migration) and the result was that the words no truncate but instead of accented character I have got "?". For example the right word is: kövirózsa but i get k?vir?zsa.
I have tried to set names of database latin2 with no result. The default was utf8.

I have MSSQL2008 with database collation SQL_Hungarian_CP1250_CI_AS
MySQL Workbench newest wersion: 6.3.5
MySQL version: 5.5.39
I use connection method: ODBC Data Source (Free TDS). (Without free TDS the migration stops with errors)

I have been trying it for days with bunch of possibility but no success... And our project stopped because it. Please help me. Many thanks.

Reverse engineer: Error calling Python function DbSQLAnywhereRE.reverseEngineer (1 reply)

$
0
0
I am migrating from Sybase SQL Anywhere 9.0 to MySQL 5.6.17 on my local computer (WAMP). I can connect to both DBs however the migration wizard fails at the Reverse Engineer stage presenting the following error:

Starting...
Connect to source DBMS...
- Connecting...
Connect to source DBMS done
Reverse engineer selected schemas....
Reverse engineering DBA, SYS, dbo, rs_systabgroup from sianbima43
- Reverse engineering catalog information
Traceback (most recent call last):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\db_sqlanywhere_re_grt.py", line 470, in reverseEngineer
return SQLAnywhereReverseEngineering.reverseEngineer(connection, catalog_name, schemata_list, context)
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\db_sqlanywhere_re_grt.py", line 169, in reverseEngineer
catalog = super(SQLAnywhereReverseEngineering, cls).reverseEngineer(connection, '', schemata_list, context)
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\db_generic_re_grt.py", line 237, in reverseEngineer
catalog = cls.reverseEngineerCatalog(connection, catalog_name)
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\db_generic_re_grt.py", line 388, in reverseEngineerCatalog
cls.reverseEngineerUserDatatypes(connection, catalog)
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\db_sqlanywhere_re_grt.py", line 41, in wrapped_method
res = method(cls, connection, *args)
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\db_sqlanywhere_re_grt.py", line 194, in reverseEngineerUserDatatypes
for type_name, sql_definition, parent_type in cls.execute_query(connection, query):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\db_generic_re_grt.py", line 76, in execute_query
return cls.get_connection(connection_object).cursor().execute(query, *args, **kwargs)
pyodbc.ProgrammingError: ('42S22', "[42S22] [Sybase][ODBC Driver][Adaptive Server Anywhere]N\xe3o \xe9 poss\xedvel encontrar a coluna 'base_type_str' (-143) (SQLExecDirectW)")

Traceback (most recent call last):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\workbench\wizard_progress_page_widget.py", line 192, in thread_work
self.func()
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\migration_schema_selection.py", line 175, in task_reveng
self.main.plan.migrationSource.reverseEngineer()
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules\migration.py", line 369, in reverseEngineer
self.state.sourceCatalog = self._rev_eng_module.reverseEngineer(self.connection, self.selectedCatalogName, self.selectedSchemataNames, self.state.applicationData)
SystemError: ProgrammingError("('42S22', "[42S22] [Sybase][ODBC Driver][Adaptive Server Anywhere]N\xe3o \xe9 poss\xedvel encontrar a coluna 'base_type_str' (-143) (SQLExecDirectW)")"): error calling Python module function DbSQLAnywhereRE.reverseEngineer
ERROR: Reverse engineer selected schemas: ProgrammingError("('42S22', "[42S22] [Sybase][ODBC Driver][Adaptive Server Anywhere]N\xe3o \xe9 poss\xedvel encontrar a coluna 'base_type_str' (-143) (SQLExecDirectW)")"): error calling Python module function DbSQLAnywhereRE.reverseEngineer
Failed

Any clue how to solve this?

Access to MySQL autonumber fields... (1 reply)

$
0
0
I recently used (for the first time) the Migration Workbench to transfer data from an ACCESS DB to MySQL. I noticed that when finished, my Key (autonumber) fields hadn't been migrated. Did I do something wrong? I will continue to use Access as a front end, so it's critical that these fields be carried forward.

Thank you!

MS Access to MySQL Migration Error (no replies)

$
0
0
I'm getting this error during the Reverse Engineering step using the migration tool in MySQL Workbench 6.3:

Starting...
Connect to source DBMS...
- Connecting...
Connecting to ...
Opening ODBC connection to DSN=GroupHiitVideos...
Connected
Connect to source DBMS done
Reverse engineer selected schemas....
Reverse engineering GroupHiitVideos from def
- Reverse engineering catalog information
- Preparing...
Traceback (most recent call last):
File "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\db_msaccess_re_grt.py", line 751, in reverseEngineer
return MsAccessReverseEngineering.reverseEngineer(connection, catalog_name, schemata_list, context)
File "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\db_msaccess_re_grt.py", line 265, in reverseEngineer
routine_count_per_schema[schema_name] = len(cls.getProcedureNames(connection, catalog_name, schema_name)) + len(cls.getFunctionNames(connection, catalog_name, schema_name)) if get_routines else 0
File "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\db_msaccess_re_grt.py", line 227, in getProcedureNames
cls.get_connection(connection).cursor().procedures() ))
pyodbc.ProgrammingError: ('42000', "[42000] [Microsoft][ODBC Microsoft Access Driver] Undefined function '|' in expression. (-3102) (SQLProcedures)")

Traceback (most recent call last):
File "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\workbench\wizard_progress_page_widget.py", line 192, in thread_work
self.func()
File "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\migration_schema_selection.py", line 175, in task_reveng
self.main.plan.migrationSource.reverseEngineer()
File "C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modules\migration.py", line 369, in reverseEngineer
self.state.sourceCatalog = self._rev_eng_module.reverseEngineer(self.connection, self.selectedCatalogName, self.selectedSchemataNames, self.state.applicationData)
SystemError: ProgrammingError("('42000', "[42000] [Microsoft][ODBC Microsoft Access Driver] Undefined function '|' in expression. (-3102) (SQLProcedures)")"): error calling Python module function DbMsAccessRE.reverseEngineer
ERROR: Reverse engineer selected schemas: ProgrammingError("('42000', "[42000] [Microsoft][ODBC Microsoft Access Driver] Undefined function '|' in expression. (-3102) (SQLProcedures)")"): error calling Python module function DbMsAccessRE.reverseEngineer
Failed

Any suggestions for fixing this?

Workbench 6 beta: import fails (3 replies)

$
0
0
Experimenting with Workbench 6.0.2 beta on Windows 7 Pro, 32-bit, sp1. Mysql engine is 5.6.10 Did an export and dropped schemas. On data import in the workbench, the first SQL statement begins and hangs. Clicking on stop yields exitcode 1.

I can run the first sql file in the dumps folder in workbench just fine. How best to get the remainder run? Return to Workbench 5?

George
Viewing all 560 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>