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

Different Hosts, Different Schemas, Migration Help Needed (3 replies)

$
0
0
I need to transfer the contents of a schema on one host to a different schema on a second host. I do not have the option to create or rename a schema. All migration tools I have attempted will only export schema and all and attempt to create this database on the new host.

The one utility I've located so far that will transfer tables and data from old host to new host with different schema names is mysqldbcopy, however it returns an error that the source is running an old version. The version they are running is beyond my control.

Can anyone tell me what utility I can use and how to go about it?

Nvarchar- sql server to Varchar - mysq (2 replies)

$
0
0
I have been trying to use the migration toolkit in mysql workbench V6 to generate a schema from my sql server database. I am finding that for columns defined as nvarchar in sql server the toolkit generates a varchar column of twice the length in mysql even though the corresponding mysql column is utf8.

e.g a sqlserver NVARCHAR(255) is generating a VARCHAR(510) column in mysql. As the mysql column is utf8 this should only have a length of 255 matching the sqlserver column.

Please can you clarify whether my understanding is correct and that the column lengths generated are incorrect or provide an explanation for this?

Thanks

Kevin

Errors when Migrate from access DB to MySQL (1 reply)

$
0
0
Thanks in advanced ;)

I'm trying to migrate from access DB(.mdb) to MySQL

But now I have a problem :(
During "Reverse engineer selected schemata" step, I have this log:




Starting...
Connect to source DBMS...
- Connecting...
Connect to source DBMS done
Reverse engineer selected schemata....
Reverse engineering None from None
- Reverse engineering catalog information
Traceback (most recent call last):
File "/Applications/MySQLWorkbench.app/Contents/PlugIns/db_generic_re_grt.py", line 712, in reverseEngineer
return GenericReverseEngineering.reverseEngineer(connection, catalog_name, schemata_list, context)
File "/Applications/MySQLWorkbench.app/Contents/PlugIns/db_generic_re_grt.py", line 216, in reverseEngineer
catalog = cls.reverseEngineerCatalog(connection, catalog_name)
File "/Applications/MySQLWorkbench.app/Contents/PlugIns/db_generic_re_grt.py", line 367, in reverseEngineerCatalog
cls.reverseEngineerUserDatatypes(connection, catalog)
File "/Applications/MySQLWorkbench.app/Contents/PlugIns/db_generic_re_grt.py", line 344, in reverseEngineerUserDatatypes
if isinstance(type_row[17], int):
IndexError: row index out of range index=17 len=15

Traceback (most recent call last):
File "/Applications/MySQLWorkbench.app/Contents/Resources/libraries/workbench/wizard_progress_page_widget.py", line 180, in thread_work
self.func()
File "/Applications/MySQLWorkbench.app/Contents/PlugIns/migration_schema_selection.py", line 148, in task_reveng
self.main.plan.migrationSource.reverseEngineer()
File "/Applications/MySQLWorkbench.app/Contents/PlugIns/migration.py", line 323, in reverseEngineer
self.state.sourceCatalog = self._rev_eng_module.reverseEngineer(self.connection, self.selectedCatalogName, self.selectedSchemataNames, self.state.applicationData)
SystemError: IndexError("row index out of range index=17 len=15"): error calling Python module function DbGenericRE.reverseEngineer
ERROR: Reverse engineer selected schemata: IndexError("row index out of range index=17 len=15"): error calling Python module function DbGenericRE.reverseEngineer
Failed

Migrating from SQL Server 2008 R2 (no replies)

$
0
0
Hi,i'm trying to migrate from SQl Server 2008 R2 but i have this error in the reverse engineer selected schemata

File "C:\Program Files (x86)\MySQL\MySQL Workbench CE 6.0.7\modules\db_mssql_grt.py", line 62, in execute_query

return get_connection(connection_object).cursor().execute(query, *args, **kwargs)

pyodbc.ProgrammingError: ('42000', '[42000] [Microsoft][ODBC SQL Server Driver][SQL Server]The data types nvarchar and text are incompatible in the equal to operator. (402) (SQLExecDirectW); [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared. (8180)')

and and i'm trying to edit the Data Type mapping but it don't save the modification

note:i'm very new in my sql

MySQL in SCaVis (1 reply)

$
0
0
Hallo,


I would like to conect the MySQL Databank to SCaVis directly without the use of java in order to represent data in diagrams directly from the database without use of java. Is it possible to do so? Or can I do so with having problems? Are there any constraints if I would like to do so or difficulties?

thank you in advance

Add Tables to Existing MYSQL database with Workbench (2 replies)

$
0
0
Dear All,

I migrated an MSSQL database to MYSQL using Workbench 6. I would like to be able to add more files without having to migrate the whole database again. Is there an option to add files? If I just select a single file in migration, then the MYSQL database is replaced with just that one file.

Thank you!

Lyle

Cannot connect to MS SQL 2005 to begin migration process (1 reply)

$
0
0
Hello, I was hoping someone could help me. I'm attempting to migrate from MS SQL 2005 on a Windows Server 2003 machine to a new server with Centos 6.5 installed. I have MySQL installed, using MySQL Workbench 6.0 to begin the migration process.

On the Migration screen I've tried to use both FreeTDS and native drivers to begin the process of connecting to the source database, but I cannot get a connection when I go to test. I've tried following all the directions I could find online, set up a user DSN on the Windows machine ODBC, installed FreeTDS and unixODBC, attempted to install the Microsoft supported ODBC 1.0, and I just cannot get a connection to happen.

The error message that I cannot get past is:
Could not connect to Source DBMS.
[00000] [iODBC][Driver Manager]/usr/local/lib/libtdsodbc.so: cannot read file data: Is a directory (0) (SQLDriverConnect)

Any help would be appreciated, even if it is a quick "Look in this direction" message. Thanks!

Oracle to MySql migration using workbench (no replies)

$
0
0
Does MySql workbench 6.0 support migration of Oracle to MySql?

Data Migration (1 reply)

$
0
0
The MySql Workbench Migration Wizard works great. Is there a was to schedule the command it generates ? Preferrably from cron (unix) but also from the Windows Task Scheduler ? (if not directly from the mysql workbench). if it can be done and you have an example, that would be very helpful ! thanks.

How to Import DBF file to Mysql? (3 replies)

$
0
0
I use mysql workbench 6.1.6,but it can not import dbf or excel file to mysql database,I hope mysql workbench team add this two file type import support,thanks.

Which version of MySQL is Opensource? (1 reply)

$
0
0
Hi All,

I would like to install MySQL, which is open source. I don't have idea about which version. Anyone please send me link to download, which is compatable with Microsoft Visual Studio 2013.

I'm open for suggestions and thanks in advance.

Regards,
V Venkateswarlu

MySQL Workbench: Guide to Database Migration from Microsoft Access (no replies)

Workbench Access to MySQL migration issue. (3 replies)

$
0
0
MySQL Workbench version: 6.2.3.12312 Build 2280 32 Bit
Win 7 pro, latest patches.

I am trying to Reverse engineer a MS Access 2010 DB to a MySQL DB. I get to the reverse engineer part and it almost gets done and then throws the following error. I don't know where to go from here, the error doesn't provide me with any info to work with. Does anyone have any idea as to what my issue might be?

Thanks,

Traceback (most recent call last):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.2 CE\modules\db_msaccess_re_grt.py", line 753, in reverseEngineer
return MsAccessReverseEngineering.reverseEngineer(connection, catalog_name, schemata_list, context)
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.2 CE\modules\db_msaccess_re_grt.py", line 351, in reverseEngineer
cls.reverseEngineerTables(connection, schema)
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.2 CE\modules\db_msaccess_re_grt.py", line 438, in reverseEngineerTables
cls.reverseEngineerTableFKs(connection, table)
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.2 CE\modules\db_msaccess_re_grt.py", line 632, in reverseEngineerTableFKs
process_fk(catalog, table, fk_name, fk_columns)
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.2 CE\modules\db_msaccess_re_grt.py", line 588, in process_fk
ref_column = find_object_with_name(foreign_key.referencedTable.columns, fk_row.szReferencedColumn)
AttributeError: 'NoneType' object has no attribute 'columns'

Traceback (most recent call last):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.2 CE\workbench\wizard_progress_page_widget.py", line 192, in thread_work
self.func()
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.2 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.2 CE\modules\migration.py", line 356, in reverseEngineer
self.state.sourceCatalog = self._rev_eng_module.reverseEngineer(self.connection, self.selectedCatalogName, self.selectedSchemataNames, self.state.applicationData)
SystemError: AttributeError("'NoneType' object has no attribute 'columns'"): error calling Python module function DbMsAccessRE.reverseEngineer
ERROR: Reverse engineer selected schemas: AttributeError("'NoneType' object has no attribute 'columns'"): error calling Python module function DbMsAccessRE.reverseEngineer
Failed

MySQL online database for 5 users (1 reply)

$
0
0
I created a pretty simple database that I'm planning to convert to MySQL using WorkBench. It has 1 Table and 2 Forms.

What I'm trying to do is have an online database that 5 users located in different cities can access and edit the database. All the data was to be stored in one table hosted on Microsoft 365, and the Front End (2 Forms) would be installed on each person's computer to be able to add information to the Table stored online.

I was going to use Microsoft Access database and split the database, but I don't want to pay Microsoft $10/month/user for this capability.

Is there a free or cheap (<$10/month) way to do this? I'm obviously brand new to MySQL and looking for a way to do this. I don't mind buying a harddrive to store it on at our office, but employees at our other location need to be able to work on it, which is why I was hosting it online to begin with.

Pentaho design report (3 replies)

$
0
0
I am running this error " Parameters provide for this report are not valid". View has been created using mysql workbench and is executing well from my database called "test". What is the problem here?

Migrating table from Oracle to MySQL fails on column not found, when this column does not exists (no replies)

$
0
0
I'm trying to populate MySQL table from Oracle. On GUI all is well. but when I take the script and try to run it as a batch it fails, on 'column not found in target table', when this column is not in the source or target.
Oracle source table:
CREATE TABLE "SYS_COUNTRY"
( "ID" NUMBER(10,0) NOT NULL ENABLE,
"ISO_CODE" VARCHAR2(6 CHAR) NOT NULL ENABLE,
"NAME" VARCHAR2(100 CHAR) NOT NULL ENABLE,
"CONTINENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"GEO_SCRAPING_NAME" VARCHAR2(100 CHAR));

MySQL target table:
CREATE TABLE sys_country
(
id INT(10) NOT NULL,
iso_code VARCHAR(6) NOT NULL,
`name` VARCHAR(100) NOT NULL,
continent_id INT(10) NOT NULL,
geo_scraping_name VARCHAR(100)
)ENGINE=INNODB DEFAULT CHARSET=utf8;

Script:
WbCopy -sourceProfile=Oracle_rd_g8_integ1
-sourceGroup='Default group'
-targetProfile=mysql_rd_g8_cms_test
-targetGroup='Default group'
-targetTable=sys_country
-sourceTable=SYS_COUNTRY
-ignoreIdentityColumns=false
-deleteTarget=false
-continueOnError=false
;

command:
java -jar sqlworkbench.jar -script=WbCopy.src -logfile='/tmp/log.err'

error log:
...
2014-12-28 13:31 INFO Connected to: [Oracle], Database version: [Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning option], Driver version: [11.2.0.3.0], JDBC Version: [11.2], ID: [$Wb-Copy$-Source-1$]
2014-12-28 13:31 INFO Using savepoints for DML: false
2014-12-28 13:31 WARN Column COUNTRY_NAME not found in target table cms_test.sys_country. Ignoring mapping!

....

I tried adding -columns to my script, but it didn't help.
When I create an Oracle table with column name c_name instead of name, all is OK.

How to I move my data to MySQL without changing the Oracle table?

Kind Regards,
Nirit

Reverse Engineer Access database in MySQL Workbench (no replies)

$
0
0
I am trying to migrate a Microsoft Access database in MySQL Workbench in Windows 7. The problem is at Revers Engineer Source. I get a "A task has failed executing."

Here is the following message log (I'm new to MySQL, so I don't know what to do next, is there a tutorial out there or a message board I could go to for directions on what to do next?).

Starting...
Connect to source DBMS...
- Connecting...
Connecting to ...
Opening ODBC connection to DSN=OR_MIG...
Connected
Connect to source DBMS done
Reverse engineer selected schemas....
Reverse engineering OR from def
- Reverse engineering catalog information
- Preparing...
Traceback (most recent call last):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.2 CE\modules\db_msaccess_re_grt.py", line 748, in reverseEngineer
return MsAccessReverseEngineering.reverseEngineer(connection, catalog_name, schemata_list, context)
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.2 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 (x86)\MySQL\MySQL Workbench 6.2 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 (x86)\MySQL\MySQL Workbench 6.2 CE\workbench\wizard_progress_page_widget.py", line 192, in thread_work
self.func()
File "C:\Program Files (x86)\MySQL\MySQL Workbench 6.2 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.2 CE\modules\migration.py", line 356, 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

Migration skips all views and stored procedures (5 replies)

$
0
0
Did I miss this in the documentation? Workbench clearly knows about views and stored procedures in my MS SQL DB, but when I went to migrate the DB it created commented code for those structures and did not migrate them. The syntax looks different from MS SQL to MySQL, but I thought Workbench would take care of that. There are too many 400+ of each to even think about doing these one-by-one. How can I migrate these?

How to import ODBC datasource in MYSQL (1 reply)

$
0
0
I have created ODBC data-source to access filemaker data-source. Now I want to import this data-source into MYSQL.How to add ODBC data-source into MYSQL ?If no then whats another options are available ?

Migration of SQL Server 2008 R2 to MySQL (no replies)

$
0
0
I am attempting to migrate a sql server database to MySQL using the Migration tool.

During the reverse engineer step I am getting the following error stating
'NoneType' object has no attribute 'upper'

If I understand correctly - there is a datatype that is somehow not defined in MySQL we use in SQL Server that has an upper function.

But I don't understand how to move past this (unless something else is wrong).

Here is trace log....

Traceback (most recent call last):
File "C:\Program Files\MySQL\MySQL Workbench 6.2 CE\modules\db_mssql_grt.py", line 327, in reverseEngineer
reverseEngineerUserDatatypes(connection, catalog)
File "C:\Program Files\MySQL\MySQL Workbench 6.2 CE\modules\db_mssql_grt.py", line 478, in reverseEngineerUserDatatypes
if simple_type.name == base_type.upper():
AttributeError: 'NoneType' object has no attribute 'upper'

Traceback (most recent call last):
File "C:\Program Files\MySQL\MySQL Workbench 6.2 CE\workbench\wizard_progress_page_widget.py", line 192, in thread_work
self.func()
File "C:\Program Files\MySQL\MySQL Workbench 6.2 CE\modules\migration_schema_selection.py", line 175, in task_reveng
self.main.plan.migrationSource.reverseEngineer()
File "C:\Program Files\MySQL\MySQL Workbench 6.2 CE\modules\migration.py", line 356, in reverseEngineer
self.state.sourceCatalog = self._rev_eng_module.reverseEngineer(self.connection, self.selectedCatalogName, self.selectedSchemataNames, self.state.applicationData)
SystemError: AttributeError("'NoneType' object has no attribute 'upper'"): error calling Python module function DbMssqlRE.reverseEngineer
ERROR: Reverse engineer selected schemas: AttributeError("'NoneType' object has no attribute 'upper'"): error calling Python module function DbMssqlRE.reverseEngineer
Failed
Viewing all 560 articles
Browse latest View live


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