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

Cannot delete table from Catalog Tree in Model view (no replies)

$
0
0
I create tables in EER diagram. Delete table from EER diagram using right-click / delete option. Table still shows up in Catalog Tree / Tables list. No option to delete. Forward engineering of this model causes the tables to be created, and cannot be deleted in the Schema either.

Using MySQL Workbench 5.2.44CE

Any help on this please?

does it sync only the new additions (1 reply)

$
0
0
I'm thinking about using a MySQL database to store information on a website.
I want to download the content of the database to my local computer, and use it.

I found that it is possible to sync two databases (with: synchronize modell with database) but i want to know if this syncing is done in a clever way.
can i choose to download parts which are new, or does it copy everything always the parts that are already in my local mysql

thanks
zhy jones

Cannot connect to MySQL during Migration in workbenck. Error: Can't connect to MySQL (10061) (code 2003) (1 reply)

$
0
0
I'm using the MySql Workbench to connect to a remote MySql instance. I have a connection setting that allows me query tables, create tables... but it fails when I try to migrate data from SqlServer to mySQL. Here the steps: Database -> migration... Enter the connection data for Source DBMS -> test connection pass. Enter the source DBMS select the existing saved connection -> test connection pass. Go to next step.

I get the error:

Check target DBMS connection I receive the error Can't connect to MySQL server on '127.0.0.1' (10061) (code 2003).

Below the complete log. Any ideas?


Starting...
Connect to source DBMS...
Connecting to source...
Connect to source DBMS done
Check target DBMS connection...
Connecting to target...
Connecting to Mysql@localhost::3306@localhost:32222...
Traceback (most recent call last):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE\modules\db_mysql_fe_grt.py", line 137, in connect
con.connect()
File "C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE\workbench\db_utils.py", line 169, in connect
raise MySQLError(modules.DbMySQLQuery.lastError(), modules.DbMySQLQuery.lastErrorCode(), "%s@%s" %
(self.connect_info.parameterValues["userName"], self.connect_info.parameterValues["hostName"]))
workbench.db_utils.MySQLError: Can't connect to MySQL server on '127.0.0.1' (10061) (code 2003)
Connecting to Mysql@localhost::3306@localhost:32222...
Traceback (most recent call last):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE\modules\db_mysql_fe_grt.py", line 137, in connect
con.connect()
File "C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE\workbench\db_utils.py", line 169, in connect
raise MySQLError(modules.DbMySQLQuery.lastError(), modules.DbMySQLQuery.lastErrorCode(), "%s@%s" %
(self.connect_info.parameterValues["userName"], self.connect_info.parameterValues["hostName"]))
workbench.db_utils.MySQLError: Can't connect to MySQL server on '127.0.0.1' (10061) (code 2003)
Traceback (most recent call last):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE\workbench\wizard_progress_page_widget.py", line 65, in run
self.func()
File "C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE\modules\migration_source_selection.py", line 450, in task_test_target
raise e
SystemError: MySQLError("Can't connect to MySQL server on '127.0.0.1' (10061) (code 2003)"): error calling Python module function DbMySQLFE.connect
ERROR: Error during Check target DBMS connection: MySQLError("Can't connect to MySQL server on '127.0.0.1' (10061) (code 2003)"): error calling Python module function DbMySQLFE.connect
Traceback (most recent call last):
File "C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE\workbench\wizard_progress_page_widget.py", line 543, in update_status
task.run()
File "C:\Program Files (x86)\MySQL\MySQL Workbench 5.2 CE\workbench\wizard_progress_page_widget.py", line 80, in run
raise e
SystemError: MySQLError("Can't connect to MySQL server on '127.0.0.1' (10061) (code 2003)"): error calling Python module function DbMySQLFE.connect
ERROR: Exception in task 'Check target DBMS connection': SystemError('MySQLError("Can\'t connect to MySQL server on \'127.0.0.1\' (10061) (code 2003)"): error calling Python module function DbMySQLFE.connect',)

Datamigration from OPENBIZ Box to Magento (no replies)

$
0
0
Dear Forum,

I have a problem with the migration from a database (Webshop OPENBIZ Box) to a Magento System.

I hope, it is possible to transfer all information with the workbench, has anyone of you experience with this?


Stefan

e cigarette liquid india (no replies)

$
0
0
Electric Cigarettes are less expensive than tobacco smoking is attracting many smokers to it, yet its toxic substances free smoke is making it popular equally amongst nonsmokers. Now it is available at common places, stores or bars, in addition, to the hundreds of Internet sites. To maintain its economical use smokers have the option of refilling E Liquid India, with a variety of flavours in varying amount of nicotine in E Juice.


eliquidindia
e liquid
e cigarette liquid india
electronic cigarette liquid

Migration Error - Unable to reverse engineer (2 replies)

$
0
0
Hi All,

Please bear with me, I'm rather new to all of this... Its a learning curve I've just started.

I'm trying to migrate a rather large table (~5gb) from a live production server to my test box. Every table on the database will migrate fine apart from one. Error from message log is as follows:

The schema could not be reverse engineered (error: 0).
ReverseEngineeringMysqlJdbc.reverseEngineer :The function ReverseEngineeringMysql:reverseEngineer() returned the following error:
Could not execute SHOW CREATE TABLE statement.
Details:
com.mysql.grt.Grt.callGrtFunction(Unknown Source)
com.mysql.grt.modules.ReverseEngineeringMysqlJdbc.reverseEngineer(ReverseEngineeringMysqlJdbc.java:87)
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've tried to repair the table but to no avail... It was a full 12 hour reindex/rebuild.
It was migrating once before, but the target ran out of space and since I've never been able to get it running again. I have tried to do a manual backup and then restore on the test server but it also failed.

Any ideas would be greatly appreciated.
Thanks!

Steve

Workbench runnign on Windows; mySQL runnign on UNIX; possible (2 replies)

$
0
0
Is it possible to connect from a Workbench running on a Windows machine to a MySQL database running on a Unix machine ?
if YES:.. how ? (any hints ?)

How To Get Migration Toolkit (1 reply)

$
0
0
I am just looking at moving from an MS SQL database to MySQL. I have downloaded and installed on my windows PC MySQL Workbench as the site seemed to give the impression that this included the MySQL Toolkit but I am unable to find out where.

Can anyone point me to a download link or the place in MySQL workbench where I can get this?

Many Thanks

Migration Error - Unable to reverse engineer (2 replies)

$
0
0
Hi All,

Please bear with me, I'm rather new to all of this... Its a learning curve I've just started.

I'm trying to migrate a rather large table (~5gb) from a live production server to my test box. Every table on the database will migrate fine apart from one. Error from message log is as follows:

The schema could not be reverse engineered (error: 0).
ReverseEngineeringMysqlJdbc.reverseEngineer :The function ReverseEngineeringMysql:reverseEngineer() returned the following error:
Could not execute SHOW CREATE TABLE statement.
Details:
com.mysql.grt.Grt.callGrtFunction(Unknown Source)
com.mysql.grt.modules.ReverseEngineeringMysqlJdbc.reverseEngineer(ReverseEngineeringMysqlJdbc.java:87)
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've tried to repair the table but to no avail... It was a full 12 hour reindex/rebuild.
It was migrating once before, but the target ran out of space and since I've never been able to get it running again. I have tried to do a manual backup and then restore on the test server but it also failed.

Any ideas would be greatly appreciated.
Thanks!

Steve

ENCODE() on MySQL 5.0 differs from 5.5+ (3 replies)

$
0
0
I was running MySQL 5.0 on Windows XP and using the ENCODE() and DECODE() functions to encode passwords in the database. I've moved to version 5.5 which is now running under Windows 7 64-bit.

I've discovered that the ENCODE/DECODE functions provide a different result in the new version. I've verified this by comparing the value produced by ENCODE for a known password on the 5.0 system, to the value produced for the same password on the 5.5 system. (Both systems use the same encoding string, of course.)

Any explanations? This caused a big headache for user passwords, none of which now work on the new system. Fixing the new database is straightforward, of course, but what I'm really interested in is what happened.

Migration issue from Access database to MySQL (1 reply)

$
0
0
Hi

I want to migrate an Access database to MySQL using the Migration tool on the Work Bench, but it always crashed. There is "None" display for Schema selection for the Access database and then it was crashed on the next step.

What could possibly go wrong here? Is it a bug?

Does Migration tool not work with Access database?

Thank you very much

Problems with utf8 characters when migrating from SQL Expres 2008 (5 replies)

$
0
0
Hi

I have a problem when trying to migrate a database from MS Express 2008 to MySql 5.5.

I use the migration-tool in MySql Workbench (newest version) and all the schema creation and mapping is working perfectly. But when it comes to bulk-copy, the data inserted is not converted to utf8, and that results in strings that are "cut off" when a danish Æ-Ø-Å is encountered.

When i run the wizard and it comes to "Manual Editing" it says under "Migration Message": Collation Danish_Norwegian_CI_AS migrated to utf8_general_ci. SO i dont understand, why it is not working?

I have tried the migration-tool in SQLyog, and it handles the conversion as expected, but i really dont want to pay for it :)

How can i make it convert the strings correctly?

Some help or guidance would be really helpfull.

Regards, Morten

Changing UNIQUE_CHECKS, FOREIGN_KEY_CHECKS & SQL_MODE (1 reply)

$
0
0
I have a question/concern.

My organization often uses the output from Workbench's "create alter script" export ability as the basis for their alter scripts. They start with what workbench provides and then add their own additional SQL commands.

In the workbench output I see the following near the top of the script

SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL';

and at the end there are commands that to restore the old values.

I found the explanation for these changes at:
http://dev.mysql.com/doc/workbench/en/workbench-faq.html

However, my concern is..... what if the script fails in the middle. Doesn't that mean that the we never restore the old values for these variables? And isn't that bad?

Migrate from .accdb to MySQL (5 replies)

$
0
0
Hi everyone,

I'm trying to migrate my .accdb file (DATI.accdb) in MySQL.
I create DSN connector for my accdb database but, in "Fetch Schemata List" step I have this log:


Starting...

Connect to source DBMS...

- Connecting to source...

Connecting to Mssql@DATI...

Opening ODBC connection to DSN=DATI;DATABASE=;UID=sa;PWD=XXXX...

Connected

Traceback (most recent call last):

File "C:\MySQL\MySQL Workbench 5.2 CE\modules\db_mssql_grt.py", line 147, in connect

_connections[connection.__id__]["version"] = getServerVersion(connection)

File "C:\MySQL\MySQL Workbench 5.2 CE\modules\db_mssql_grt.py", line 173, in getServerVersion

ver_string = execute_query(connection, "SELECT CAST(SERVERPROPERTY('ProductVersion') AS VARCHAR)").fetchone()[0]

File "C:\MySQL\MySQL Workbench 5.2 CE\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][Driver ODBC Microsoft Access] Errore di sintassi (operatore mancante) nell'espressione della query 'CAST(SERVERPROPERTY('ProductVersion') AS VARCHAR)'. (-3100) (SQLExecDirectW)")

Traceback (most recent call last):

File "C:\MySQL\MySQL Workbench 5.2 CE\modules\db_mssql_grt.py", line 173, in getServerVersion

ver_string = execute_query(connection, "SELECT CAST(SERVERPROPERTY('ProductVersion') AS VARCHAR)").fetchone()[0]

File "C:\MySQL\MySQL Workbench 5.2 CE\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][Driver ODBC Microsoft Access] Errore di sintassi (operatore mancante) nell'espressione della query 'CAST(SERVERPROPERTY('ProductVersion') AS VARCHAR)'. (-3100) (SQLExecDirectW)")



Traceback (most recent call last):

File "C:\MySQL\MySQL Workbench 5.2 CE\workbench\wizard_progress_page_widget.py", line 65, in run

self.func()

File "C:\MySQL\MySQL Workbench 5.2 CE\modules\migration_source_selection.py", line 415, in task_connect

raise e

SystemError: ProgrammingError("('42000', "[42000] [Microsoft][Driver ODBC Microsoft Access] Errore di sintassi (operatore mancante) nell'espressione della query 'CAST(SERVERPROPERTY('ProductVersion') AS VARCHAR)'. (-3100) (SQLExecDirectW)")"): error calling Python module function DbMssqlRE.getServerVersion

ERROR: Error during Connect to source DBMS: ProgrammingError("('42000', "[42000] [Microsoft][Driver ODBC Microsoft Access] Errore di sintassi (operatore mancante) nell'espressione della query 'CAST(SERVERPROPERTY('ProductVersion') AS VARCHAR)'. (-3100) (SQLExecDirectW)")"): error calling Python module function DbMssqlRE.getServerVersion



Traceback (most recent call last):

File "C:\MySQL\MySQL Workbench 5.2 CE\workbench\wizard_progress_page_widget.py", line 543, in update_status

task.run()

File "C:\MySQL\MySQL Workbench 5.2 CE\workbench\wizard_progress_page_widget.py", line 80, in run

raise e

SystemError: ProgrammingError("('42000', "[42000] [Microsoft][Driver ODBC Microsoft Access] Errore di sintassi (operatore mancante) nell'espressione della query 'CAST(SERVERPROPERTY('ProductVersion') AS VARCHAR)'. (-3100) (SQLExecDirectW)")"): error calling Python module function DbMssqlRE.getServerVersion

ERROR: Exception in task 'Connect to source DBMS': SystemError('ProgrammingError("(\'42000\', "[42000] [Microsoft][Driver ODBC Microsoft Access] Errore di sintassi (operatore mancante) nell\'espressione della query \'CAST(SERVERPROPERTY(\'ProductVersion\') AS VARCHAR)\'. (-3100) (SQLExecDirectW)")"): error calling Python module function DbMssqlRE.getServerVersion',)



Failed


Please help me ;)

Import .DBF Structure & Data to MySql Database via Workbench (1 reply)

$
0
0
Hi all,

I am new to workbench & MySQL, but hopefully someone can point me in the right direction with this one.

I have an SQL reporting system which connects to a MySQL database on the same hosting package. I have 4 seperate .DBF files that I want to import the data & structure from to the MySQL database so that I can link the reporting system to this data & create reports.

I tried using the import tool in Workbench which said that the import had run successfully but no table or data was created in the MySQL database.

Can I do this in workbench, and if so how? Otherwise what is the best way to do so.

Thanks for your help!

Richard

Abercrombie and Fitch wien (Vienna) is popular in Austria. (no replies)

$
0
0
At this point of time, you can clearly see the way fashion has been transformed and evolved. The fashion industry is being considered as the most modernized, revolutionized and it has become a million dollar one. People have started to invest a lot in the market of fashion. More and more brands are coming up with new and innovative designs, which are undoubtedly being loved by masses, but the charisma and charm of already established brands cannot be ignored at any cost. There are biggies of fashion houses, which has been selling tremendously and incredibly designed fashion related products including garments, handbags, shoes, fragrances and a number of other accessories. Abercrombie and fitch is among the top most ones. Although, this brand doses not deals in the entire above-mentioned product line, but still it has a lot to offer to its highly prestigious and sophisticated customers. Check Abercrombie and Fitch ?sterreich here.

Men and women, especially the young ones can go crazy, while shopping Abercrombie and Fitch outlet garments. They can spend anything to expand their collection of
abercrombie wien products. This brand has captured the attention of millions of people, living across the globe. If you will talk to someone, you will not find even a single person, who has never come across, at least the name of this brand. And if you find anyone, who has never purchased any one product or has never heard about the name of Abercrombie and Fitch, then it is for sure that the person does not have any sense of style. You should feel sorry for him and do ask him to develop his taste in, terms of dressing up.

Abercrombie and fitch online shop has got the best quality jackets, hoodies, sleeve t-shirts, sweaters, undergarments, shorts of varied styles, outwear, jeans, polo shirts, fleeces, jumpers, cargos and handbags. All these products are available in different styles, colors and fabrics. The customers have a complete range, shelved in front of them and they can pick their most loved one. Wearing any of the garments of this brand means that you are absolutely in style and funk and are ready to grab the attention of the people, walking around towards yourself. Have a look at Abercrombie wien.

If you really want to enhance your beauty and style, then nothing can be better than wearing the garments of abercrombie and fitch wien, which will elevate your personality. The aim of Abercrombie and Fitch is to add sophistication and decency in your looks.

combining 2 tables (1 reply)

$
0
0
hi im very new to mysql but i have 2 tables that i need to combine to one table

but i doesnt want it to combine those rows where colum 1 2 and 3 are the same in the tables.(there is 8 colum is the tables)

im not sure if this is doable but i really need help

Import of big database (no replies)

$
0
0
if the import function of phpmyadmin fails, my script imports very big database dumps. Just use the script.


<?php
/*
Importscript to import Big SQL scripts
It handles very Big SQL scripts.

ATTENTION: JUST ONE SQL ORDER PER LINE (;)


1. Upload this script to your server. Change the SQL Properties before

2. Upload the SQL file to the same Folder (Best with FTP)

3. Call the Script with the SQL Filename as GET Parameter (Example: www.yourdomain.com/importskript.php?filename=sql.sql)

Copyright by Lucius Bachmann
*/
function db()//Function to Connect to Database
{
$MySQL_Host="Your-MySQL Host";
$MySQL_User="Your Mysql User";
$MySQL_Passw="Your Mysql Password";
$db="Your DB Name";


$dblk=mysql_connect("$MySQL_Host","$MySQL_User","$MySQL_Passw");
echo mysql_error($dblk);
mysql_select_db($db);
return($dblk);
}

$dblk=db();//Database connect
session_start();//start session
$maxtime=ini_get("max_execution_time");// get max execution time
$starttime=time();//starttime

if(isset($_SESSION['pointer'])){//If the skript was called by itself, set the variables as they where before
$pointer = $_SESSION['pointer'];
$sql = $_SESSION['sql'];
$counter = $_SESSION['counter'];
$fehler = $_SESSION['fehler'];
$Filename= $_SESSION['filename'];
$FileHandler = fopen($Filename, 'r') or die("can't open file");
fseek($FileHandler, $pointer);//Jump to the place the pointer was before
}
else{//If its the first call, initialize the Variables

$sql='';
$letter='';
$Filename = $_GET['filename'];

$pointer=0;

$counter=0;
$lastletters='';
$fehler='';
$_SESSION['skript_startet']=$starttime;
$FileHandler = fopen($Filename, 'r') or die("can't open file");
}

while(time()-$starttime+5 < $maxtime){// As long as you have Execution Time, And to avoid maximum execution timeout
$line=fgets($FileHandler);//Read line
if($line === false){//If End Of file, exit
$EndofFile=1;
break;
}
while(!(strpos($line, "--")===false)){//If a comment line, get next line
$line=fgets($FileHandler);

}
$pointer=ftell($FileHandler);//get the offset of the filecursor
$string=substr($line,0, strlen($line)-1);//read the line into a string
$sql.=$string;//append to sql order
$lastletter=substr($line, strlen($line)-2, strlen($line)-1);// get the last letter of the line
if(!(strpos($lastletter, ";")===false)){//If the last letter was a semicolon,

if(!mysql_query($sql)){//Mysql query
$fehler.="SQL Fehler: $sql <br>";// Fehler Save
}
$counter++;// count the orders
$sql='';
}

}

if(isset($EndofFile)){//If the sql import is finished, show stats
$timeUsed=time()-$_SESSION['skript_startet'];
echo"
SQL Befehle ausgeführt: $counter <br>
Time Used: $timeUsed seconds <br>
Fehler: $fehler <br>
";
}
else{//save the variables in the session

$_SESSION['pointer']=$pointer;
$_SESSION['sql']=$sql;
$_SESSION['counter']=$counter;
$_SESSION['fehler']=$fehler;
$_SESSION['filename']=$Filename;

echo "<script>window.location='".$_SERVER['PHP_SELF']."';</script>";//and call the script itself
}





?>

Migrating Process (no replies)

$
0
0
Hi All

Please bear with me being that I'm new to MySql and this forum. I have a question in regards to using the migration wizard on MySql 5.5. I need to migrate 2.73 tb of data from our old xserve to a new windows box. Note both the source and target are MySql databases. This is my question with the data base I have a field called file_path this field points to the folder where our images are stored. When I do a migration I understand I'm migrating one database to another but will it also bring over the actual data images that are referenced in the file_path field.

Thanks appreciate the help.
Jose'

mysql- workbench struct invalid error (no replies)

$
0
0
I'm creating a DB in lubuntu 64 bit machine. in the workbench when i try to open existing EER model *.mwd it throws an error

Error unserializing GRT data
error unserializing object (invalid struct)

the same file works fine on windows . Please suggest.
Viewing all 560 articles
Browse latest View live


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