Quantcast
Viewing all 3736 articles
Browse latest View live

Difference between "Workbench.X" and "Workbench"? (no replies)

Hello, as a newbie to workbench please allow a simple question: What's the difference between "MySQL Workbench.X 6.3 CE" and "MySQL Workbench 6.3 CE"? I find both entries in my start menu. Does X stand for Xampp?

Angelika

installation of mysql-client (1 reply)

Hi -

I'm relatively new to MySQL, and totally new to setting up and administering databases, so my questions may seem simplistic.

I just installed MySQL server on Debian Linux using apt-get. The service command confirms that it's up and running. When I installed, I got mysql-client as well. Apparently this is a CLI client, and I'd like to have a GUI client. I see that the MySQL Workbench 6.3.9 is available for Ubuntu. Does anyone have experience using it under Debian?

I guess the alternative is to build my own...not sure how that would work out.

I'd appreciate any direction on this.

Export recordset to an external file doesn't escape quotes (1 reply)

When doing a simple export of a recordset, any embedded quotes are not escaped. It seems that the default query for this function is missing the ESCAPED BY clause.

Here's a sample output with semicolon delimited fields.

240-300;"RIGID PVC CONDUIT - 3"";1;ft;"SUPPLIER CORP.";7.26

Error "Error Code: 1305. FUNCTION 01tst. GROUP_CONCAT does not exist " (no replies)

There are two tables


-- Дамп структуры для таблица 01tst.tst_003_tb_01_calcul
CREATE TABLE IF NOT EXISTS `tst_003_tb_01_calcul` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pol_1` char(50) DEFAULT NULL,
`idsub` int(11) DEFAULT NULL,
`pol_3` int(11) DEFAULT NULL,
`pol_scepka` text,
UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;

-- Дамп данных таблицы 01tst.tst_003_tb_01_calcul: ~3 rows (приблизительно)
/*!40000 ALTER TABLE `tst_003_tb_01_calcul` DISABLE KEYS */;
INSERT INTO `tst_003_tb_01_calcul` (`id`, `pol_1`, `idsub`, `pol_3`, `pol_scepka`) VALUES
(1, 'dog 1', 1, 1, '< ТЕКСТ _ ЗАПИСИ pol_4_zp 1> , < ТЕКСТ _ ЗАПИСИ pol_4_zp 2> , < ТЕКСТ _ ЗАПИСИ pol_4_zp 3> '),
(4, 'dog 2', 2, 1, '< ТЕКСТ _ ЗАПИСИ pol_4_zp 4> , < ТЕКСТ _ ЗАПИСИ pol_4_zp 5> , < ТЕКСТ _ ЗАПИСИ pol_4_zp 6> '),
(7, 'dog 3', 3, 1, '< ТЕКСТ _ ЗАПИСИ pol_4_zp 7> , < ТЕКСТ _ ЗАПИСИ pol_4_zp 8> , < ТЕКСТ _ ЗАПИСИ pol_4_zp 9>');
/*!40000 ALTER TABLE `tst_003_tb_01_calcul` ENABLE KEYS */;

-- Дамп структуры для таблица 01tst.tst_003_tb_02_calcul
CREATE TABLE IF NOT EXISTS `tst_003_tb_02_calcul` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pol_1` char(50) DEFAULT NULL,
`idsub` int(11) DEFAULT NULL,
`pol_3` int(11) DEFAULT NULL,
`pol_4` text,
UNIQUE KEY `id` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;

-- Дамп данных таблицы 01tst.tst_003_tb_02_calcul: ~9 rows (приблизительно)
/*!40000 ALTER TABLE `tst_003_tb_02_calcul` DISABLE KEYS */;
INSERT INTO `tst_003_tb_02_calcul` (`id`, `pol_1`, `idsub`, `pol_3`, `pol_4`) VALUES
(1, 'dog 1', 1, 1, 'ТЕКСТ _ ЗАПИСИ pol_4_zp 1'),
(2, 'dog 1', 1, 2, 'ТЕКСТ _ ЗАПИСИ pol_4_zp 2'),
(3, 'dog 1', 1, 3, 'ТЕКСТ _ ЗАПИСИ pol_4_zp 3'),
(4, 'dog 2', 2, 1, 'ТЕКСТ _ ЗАПИСИ pol_4_zp 4'),
(5, 'dog 2', 2, 2, 'ТЕКСТ _ ЗАПИСИ pol_4_zp 5'),
(6, 'dog 2', 2, 3, 'ТЕКСТ _ ЗАПИСИ pol_4_zp 6'),
(7, 'dog 3', 3, 1, 'ТЕКСТ _ ЗАПИСИ pol_4_zp 7'),
(8, 'dog 3', 3, 2, 'ТЕКСТ _ ЗАПИСИ pol_4_zp 8'),
(9, 'dog 3', 3, 3, 'ТЕКСТ _ ЗАПИСИ pol_4_zp 9');
/*!40000 ALTER TABLE `tst_003_tb_02_calcul` ENABLE KEYS */;

////


Query to group tables into one table
select t01.idsub, t01.pol_1, *GROUP_CONCAT(t02.pol_4)*AS*scepk
from tst_003_tb_01_calcul t01
inner join tst_003_tb_02_calcul t02*
ON t02.idsub*=*t01.idsub
group by t01.idsub

When you run the query, you receive an error:
"Error Code: 1305. FUNCTION 01tst. GROUP_CONCAT does not exist"


Question.
How to get rid of the error?

Error 't02' (identifier) is not valid input at this position (1 reply)

In the console the query works well.
When I enter a query in the Workbench, I get the error 't02' (identifier) is not valid input at this position

Screen at http://prntscr.com/ejvab6

Inquiry
Select t01.idsub, t01.pol_1, GROUP_CONCAT (t02.pol_4) AS scepk from tst_003_tb_01_calcul t01 inner join tst_003_
Tb_02_calcul t02 ON t02.idsub = t01.idsub group by t01.idsub, t01.pol_1;

The tables for the query can be found at https://forums.mysql.com/read.php?152,655994

Fetch very slow on local instance (1 reply)

Hi all,

First time poster and I'm hoping someone can help me. I am using the latest Version 6.3.9 (GPL) of the MySQL Workbench. I have an InnoDB database running as a Local Instance.

My issue is that the "Fetch" time of the first query below is 1.2sec (HUGE!!) and it only return 29K rows. I have also included a second query (as a benchmark) which returns a lot more rows ($500K) and yet the fetch time is lower at 0.6secs. Any ideas why this is happening??

Online help says "Fetch" time issues are almost always related to network issues. But I a running a local instance database, so there is no network.


SELECT departure_time
from stop_times, trips, terminal_stops
WHERE stop_times.trip_id = trips.trip_id
AND stop_times.stop_id = terminal_stops.stop_id
LIMIT 100000;
-- Duration=0.07sec / Fetch=1.2sec, 29K rows returned

SELECT departure_time
from stop_times
LIMIT 1000000;
-- Duration=0.00sec / Fetch=0.625sec, 500K rows returns


Any ideas are welcome.

Thanks.

How to get collation in generated SQL code? (4 replies)

Switched to a new laptop, and upgraded to WorkBench version 6.3.8 from 6.3.3.

My question is, how do I get the "Copy SQL to Clipboard" function to generate the collation for the charset again?

Example:
In 6.3.8 it add: CHARACTER SET 'latin1'

In 6.3.3 it add: CHARACTER SET 'latin1' COLLATE 'latin1_general_ci'


That it does not add the collation create a unneeded issues regarding foreign keys if the database server does not run the same default collation for the character set as used in the tables.

I.e. This cause a lot of unneeded editing of the SQL code generated to manually add the collation to not make the query fail due to the foreign key cannot be created due to mismatch between the columns.


I have looked over the settings several times and cannot find the ability to change this, so hope someone can help me in the right direction.

Reverse engineering (no replies)

I have done reverse engineering. There are 129 tables in my database. so all entity are overlapping. So please help in this to get proper diagram

Change name of downloaded database (1 reply)

I found a suggestion on a phpBB forum that this tool could help me to change the name of my DB but I can not figure out how.

I have a MySQL(i) 5.6.34 DB that was downloaded from the Cpanel but I want to restore to a newly named DB. I know I can't just change the file name so how do I do this and not have it overwrite the original DB name on the site?

Sorry if this is a simple question but I am learning phpBB and MySQL as I go. A friend had some medical issues and asked me to keep his site going.

Thanks,
John

Where is the connection option for Windows Authentication (no replies)

I'm using Workbench 6.3.9. How can I connect to my MySQL server using Windows Authentication? I don't see that option. Thanks.

"Synchronize with Any Source" from the command line. (no replies)

Hello.

Is there a way to use "Synchronize with Any Source" from the command line?
If there are a lot of files, GUI takes a lot of time.
Is it possible to request this function?

Thank you.

How to connect to remote MySQL when public wifi blocks port 3306? (1 reply)

Hello, please, cannot connect to remote MySQL (Amazon AWS - RDS) using MySQL Workbench from public wifi (starbucks, mc donald's, public library, etc...)

Can connect from home, no problem, port 3306, I believe is being blocked.

As I like to code from public wifi locations, I cannot connect to remote MySQL (MySQL Workbench with remote on port 3306).

Please, any hints on how to resolve? I tried putty but it did not work.

=============================================

Starting portqry.exe -n querydatabase.cn2wifbapzhr.us-west-2.rds.amazonaws.com -e 3306 -p TCP ...

Querying target system called:

querydatabase.cn2wifbapzhr.us-west-2.rds.amazonaws.com

Attempting to resolve name to IP address...

Name resolved to 35.165.108.115

querying...

TCP port 3306 (unknown service): FILTERED
portqry.exe -n querydatabase.cn2wifbapzhr.us-west-2.rds.amazonaws.com -e 3306 -p TCP exits with return code 0x00000002.

how to display Navigator panel? (no replies)

Hi, all -

I've gotten Workbench up and connecting to a local server successfully. This seems like a dumb question, but...how do I get the Navigator left panel to display? I've gone to View -> Panels and everything says it's showing, but...no Navigator. What might I be overlooking?

Thanks.

Error Saving Account (no replies)

Through MySql Workbench, I'm trying to change permissions on existing users through "Users and Privleges" and create new users but get the following error when applying the changes:

Error Saving Account
Error Changing account newuser@%. Access denied for user 'admin_master'@%' (using password: YES)

Any ideas what is causing this?

MySQL WorkBench/MySQL database migration (1 reply)

Hello world...

Thank you, in advance, for any and all guidance. I have been cramming/learning all things SQL for months now and recently bought the 'SQL Queries: for Mere Mortals' Version 3 book. In it, it suggests to download MySql so that the reader can import the Sample Databases into it and complete various exercises etc. I also downloaded the MySql WorkBench.

I have a 2014 MAC 2.7 GhZ Intel Core i5/ 8g 1600 mhz.

Bottomline, I am unable to drag, import, migrate the sqlscripts etc into the MySql Workbench to work on. I have read and researched and I'm stuck. I simply just want to be able to complete the exercises/problem sets in the book. The

What am I doing wrong or not doing at all?

Thanks a million for any tips/advice

Server Administration - server stopped (2 replies)

Hello,

I'm a newbie and I need to administer a Workbench installation running 5.2.14 Revision 4990 on Windows. I did not setup this installation.

I'm migrating some of the databases to a new server running the current version of MYSQL Workbench

My question relates to the source server. I have determined that there are some user accounts defined other than root which I need to setup on the destination server so that PHP scripts continue to operate.

I can connect to the source server using the SQL Editor, but when I try to use Server Administration no connection / database server instance was defined. So that suggests to me that there is a way of managing the user accounts other than via Server Admin. I'd appreciate some advice on how to go about this.

Alternatively I have tried to create a server instance myself
root@127.0.0.1:3306
root
{password}
Default Schema - not sure about this (used the database that I'm migrating) - perhaps this is why it isn't working
But Test connection - says that parameters are correct

But when I use the connection, it says that the Server is stopped. And I can't start the server. No errors reported.

The database is actually responding to queries, so it's only the Server Admin component that appears to be stopped.

Appreciate suggestions on how to proceed

Thank you

VW

Data Migration From SQL Server to MySQL (no replies)

I am getting this Attribute Error : 'No Type' objectives has no attribute 'split' when i tried to migrate sql db to mysql db in mysql workbench

these are the Log details :

Starting...
Connect to source DBMS...
- Connecting to source...
Connecting to Mssql@sa...
Opening ODBC connection to Driver=sa;DATABASE=;UID=sa;PWD=XXXX...
Connected to Mssql@ 11.0.2100.60
Traceback (most recent call last):
File "/Applications/MySQLWorkbench.app/Contents/PlugIns/db_mssql_grt.py", line 147, in connect
_connections[connection.__id__]["version"] = getServerVersion(connection)
File "/Applications/MySQLWorkbench.app/Contents/PlugIns/db_mssql_grt.py", line 174, in getServerVersion
ver_parts = [ int(part) for part in ver_string.split('.') ] + 4*[ 0 ]
AttributeError: 'NoneType' object has no attribute 'split'
Traceback (most recent call last):
File "/Applications/MySQLWorkbench.app/Contents/PlugIns/db_mssql_grt.py", line 174, in getServerVersion
ver_parts = [ int(part) for part in ver_string.split('.') ] + 4*[ 0 ]
AttributeError: 'NoneType' object has no attribute 'split'

Traceback (most recent call last):
File "/Applications/MySQLWorkbench.app/Contents/Resources/libraries/workbench/wizard_progress_page_widget.py", line 65, in run
self.func()
File "/Applications/MySQLWorkbench.app/Contents/PlugIns/migration_source_selection.py", line 406, in task_connect
raise e
SystemError: AttributeError("'NoneType' object has no attribute 'split'"): error calling Python module function DbMssqlRE.getServerVersion
*** ERROR: Error during Connect to source DBMS: AttributeError("'NoneType' object has no attribute 'split'"): error calling Python module function DbMssqlRE.getServerVersion

Traceback (most recent call last):
File "/Applications/MySQLWorkbench.app/Contents/Resources/libraries/workbench/wizard_progress_page_widget.py", line 543, in update_status
task.run()
File "/Applications/MySQLWorkbench.app/Contents/Resources/libraries/workbench/wizard_progress_page_widget.py", line 80, in run
raise e
SystemError: AttributeError("'NoneType' object has no attribute 'split'"): error calling Python module function DbMssqlRE.getServerVersion
*** ERROR: Exception in task 'Connect to source DBMS': SystemError('AttributeError("\'NoneType\' object has no attribute \'split\'"): error calling Python module function DbMssqlRE.getServerVersion',)

Failed



i tried a solution (given below , taken from the link https://bugs.mysql.com/bug.php?id=66030). but it didn't help. I still get the same error. Please help me.

solution:

// We'll need some help from you to diagnose this one. With a text editor, open the /Applications/MySQLWorkbench.app/Contents/PlugIns/db_mssql_grt.py file and around line 174 you'll find a line that looks like: ver_string = execute_query(connection, "SELECT SERVERPROPERTY('ProductVersion')").fetchone()[0]

Change that to:

ver_string = execute_query(connection, "SELECT CAST(SERVERPROPERTY('ProductVersion') AS VARCHAR)").fetchone()[0]
Then save and retry. Thanks! //

Wrong query generated while data migration from Sql Server to MySql for Decimal field (no replies)

Hi Everyone,
I needed to migrate my database to mysql from SqlServer.
So i had to do a data migration.
For this, i preferred the Database Migration wizard of MySql Workbench.
I have the MySql Workbench 6.3.9 version build 10690321 CE (64 bits).

I have a field in a table with data type decimal(5,2).
I configured MySql with the relative data types of Sql Server. Used decimal(5,2) for MySql column. Tried data transfer, failed, then changed to decimal(10,4), again tried and failed.

When the error occured, i took a look in the logs, i found that the insert query being prepared by the utility for a decimal value 109.09 had put the same value in the query as '109.0\0' and when this got executed, it gave the following error: Inserting Data: Incorrect decimal value: '109.0\x00' for column 'columnName' at row 28


My question: What is the cause that has placed \0 instead of 9 after .0 in the value 109.09, where in both MySql and SqlServer the column data type is decimal.

Its not that only 9 was changed to \0. Before this i had a negative value in some other column as -16.67. For this value i got the same error where query had put it as '-16.6\0'

I thought it might be because of -ve value. So to test that i made it positive and proceeded ahead and i got success, but then i got same error with a positive value in different column with which i have started my post.

Supportice Info for the question:
I have created a database where i have used
DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;

because i had to store special chars as well in the text based columns.
Now to check if, dataset or collate was responsible for this, i created the database without them and tried to trnasfer a single record that had the problem. But it failed with every different permutation and combination of configuring the charset and collate.
Even with an unsigned decimal configuration to the column failed.

Nothing has worked yet.

I think i was clear in expressing my problem, if i wasn't please ask the info you require to troubleshoot it for me.

Please provide a solution to get rid of this problem.

Thanks.

migration mssql to mysql (no replies)

I'm trying to migrate from mssql to MySQL using workbench and I'm following the instructions at http://mysqlworkbench.org/2012/07/migrating-from-ms-sql-server-to-mysql-using-workbench-migration-wizard/
When I leave the Source Selection Database blank I do not have any Schemas to select from in the Schemas Selection. If I enter a database name I get the following error message;
WARNING: The following catalogs were not found:
I found this video instruction on setting up a account for migration;
http://mysqlworkbench.org/2013/08/video-tutorial-setup-a-restricted-sql-server-account-for-migrations-with-mysql-workbench/
My ms sqlsms does not work the same as the video, I have SQL Server 2016 Management Studio version 13.0.16.106.4. It doesn't have the dialog box to create a new login. I only get a sql query;
-- ======================================================================================
-- Create SQL Login template for Azure SQL Database and Azure SQL Data Warehouse Database
-- ======================================================================================

CREATE LOGIN <SQL_login_name, sysname, login_name>
WITH PASSWORD = '<password, sysname, Change_Password>'
GO

Thanks for any help

Problem changing shortcut in main_menu.xml (1 reply)

Hello.
I am trying to change the shortcut for execluting the current statement to Control-E, and therefor changed the main_menu.xml file found in C:\Program Files\MySQL\MySQL Workbench 6.3 CE\data.
The problem is that nothing happens. The shortcut remains to be Control-Enter.
What may be the problem?


<value type="object" struct-name="app.MenuItem" id="com.mysql.wb.menu.query.execute_current_statementwin">
<link type="object" key="owner" struct-name="app.MenuItem">com.mysql.wb.menu.query</link>
<value type="string" key="caption">Execute Current Statement</value>
<value type="string" key="name">query.execute_current_statement</value>
<value type="string" key="command">builtin:query.execute_current_statement</value>
<value type="string" key="itemType">action</value>
<value type="string" key="shortcut">Modifier+E</value>
<value type="string" key="platform">windows</value>
</value>

I found another shortcut in the file for Control-E, so I changed that to Control-M so it wouldn't be any duplicates...
Viewing all 3736 articles
Browse latest View live


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