mysql-workbench

MySQL not working after updating to Windows 8.1 [closed]

早过忘川 提交于 2019-12-05 04:06:36
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Everything was working fine, I had Windows 8 and MySQL 5.6 workbench. Yesterday, I upgraded to Windows 8.1 which made the PC run better but messed up the MySQL. When I enter the workbench I can see my old connection but by clicking on it I get: Cannot Connect to Database Server Your connection attempt failed for user 'root' from your host to server at 127.0.0.1:3306:Can't connect to mysql server on '127.0.0.1'

How can I execute SQL queries that take longer 99,999 seconds on MySQL Workbench?

烈酒焚心 提交于 2019-12-05 03:21:54
UPDATE: the issue is now fixed . I would like to execute a query that takes more than 99,999 seconds to execute (e.g. SELECT SLEEP(150000); ). To change the timeout in MySQL Workbench, we have to go to Edit → Preferences → SQL Editor → DBMS connection read time out (in seconds) . However, the DBMS connection read time out field only accept up to 5 figures, and setting the field to 0 is equivalent to the default parameter (600 seconds). If the query takes more time than the timeout, I get the error message: Error Code: 2013. Lost connection to MySQL server during query Hence my question: is it

Build Automation & MySQL Workbench Scripting: Forward Engineer SQL CREATE SCRIPT

倾然丶 夕夏残阳落幕 提交于 2019-12-05 02:55:53
I'm currently looking into automating a software build process that includes a database schema defined in MySQL Workbench. Using Workbench's scripting capabilities, I'd like to open a Workbench document and export its schema as an SQL CREATE script. What I'd like to know is if there is a function that exports the entire schema in one step as Workbench's File | Export | Forward Engineer SQL CREATE Script , automatically handling any dependencies between tables. I've found some candidates in the DbMySQL module that might do that ( generateSQL(GrtNamedObject, dict, string) and makeSQLExportScript

'SET foreign_key_checks = 1' does not work again

江枫思渺然 提交于 2019-12-05 02:03:38
I am working with: mysql: stable 5.6.22 (bottled) MySQLWorkBench 6.2 I have the following sequence DROP TABLE IF EXISTS invoicedetail; DROP TABLE IF EXISTS invoiceheader; DROP TABLE IF EXISTS product; It fails when I work through Java (JDBC) and fails through the MySQLWorkBench too, the error message is about the FK Child constraints (I don't have the exact error message), well through Google I did a research and I have found the same valid solution twice. Cannot delete or update a parent row: a foreign key constraint fails How to temporarily disable a foreign key constraint in MySQL? Well I

How to on Performance_schema in mysql?

时光怂恿深爱的人放手 提交于 2019-12-04 23:32:36
I want to turn performance_schema ON in mysql to collect statistics. How can I achieve this? The following guide is linux-specific, but should easily be adaptable to windows. You have to check if the mysql server version you use, is compiled with support for it: mysqld --verbose --help | grep performance-schema If you can read something there, you are good to go. Enable it on server startup by putting into /etc/mysql/my.cnf [mysqld] performance_schema Afterwards do a service mysqld restart (redhat) (or service mysql restart on debian/ubuntu) to restart the mysql server. On how to use the

How can I restore the MySQL root user’s full privileges

烈酒焚心 提交于 2019-12-04 19:03:49
I accidentally removed all the privileges from my MySQL root user, Is there some way I can restore this user to its original state (with all privileges)? i m using my sql work bench 6.0 please let me know soultion step by step as i m new in my sql. First try GRANT ALL ON *.* TO 'root'@'localhost'; if that does not work then do the following Stop mysqld service with this ( on UNix-like systems) sudo mysqld stop Restart it with the --skip-grant-tables option. Connect to the mysql with just: mysql (i.e. no -p option, and username may not be required). Use the following in the mysql client: UPDATE

Error when trying to migrate postgresql db to mysql with workbench

試著忘記壹切 提交于 2019-12-04 18:55:47
问题 I am trying to migrate a postgresql database to mysql following this tutorial: http://mysqlworkbench.org/2012/11/how-to-migrate-postgresql-databases-to-mysql-using-the-mysql-workbench-migration-wizard/ I am experiencing this error when I try to test my connection Could not connect to Source DBMS [IM002][Microsoft][ODBC Driver Manager] Data soure name not found and no default driver specified (0)(SQLDriverConnect) ODBC connection string Driver=psqlodc;SERVER=127.0.0.1;PORT=5432;DATA... Does

Cannot open SQL editor on macOS High Sierra

允我心安 提交于 2019-12-04 15:30:18
Since updating to macOS High Sierra, I have not been able to open the SQL Editor on MySQL Workbench. When I try to connect to the database, as usual, I'm given the following prompt: However, after a few seconds, it simply disappears. I'm given no error or any indication from the application that anything went wrong. I've tried redownloading the application, but I'm getting the same result. edit: I tried using previous versions of Workbench, and it works perfectly on version 2.6.5. Version 6.1.7 has a disappearing grid bug on subsequent queries, which was fixed in 6.2.^ But 6.2 doesn't work on

MySQL Workbench columns tab deactivated

蓝咒 提交于 2019-12-04 13:58:05
I'm trying to add a new table in MySQL Workbench but I can't because the columns tab is deactivated. Do you have any idea of what's happening? Thanks in advance. Simply pull the whole lower tab a bit upwards and you'll see the bit where to enter your columns. 来源: https://stackoverflow.com/questions/12414723/mysql-workbench-columns-tab-deactivated

MySQL return all rows where a column contains any but only keywords from a set

五迷三道 提交于 2019-12-04 12:10:01
Is there a way to select rows where one of the column contains only , but any number of, predefined values? I've been using this, but it returns any rows where my column contains at least one of the values (which is exactly what it's suppose to do, I know). But I'm looking for a way to only select rows that have ONLY my keywords in the keyword column. SELECT * FROM `products`.`product` WHERE keywords LIKE '%chocolate%' AND keyword LIKE '%vanilla%'; Example Keywords: chocolate, sugar, milk, oats Using the above keywords, I would want the first two results returned, but not the last two: