mysql-workbench

MySQL Workbench: “Can't connect to MySQL server on 127.0.0.1' (10061)” error

你。 提交于 2019-12-02 20:44:16
I apologise.. I know this question has been asked many times before, but I've tried lots of suggestions, and simply can't find a solution. The problem: I have a MySQL database running on a hosted server. I have to use SSH to connect to it, and I have the relevant Public and Private Key files. I specifically want to use the PC version of MySQL Workbench , to access this database, for running queries, checking data, etc. If I run Sequel Pro on a Mac, it connects fine, and I can browse and query the database. No problems. If I run the trial version of SQLyog on a PC, it also connects fine. No

How to create localhost database using mysql?

≡放荡痞女 提交于 2019-12-02 18:27:00
I download mysql installer here: http://dev.mysql.com/downloads/installer/ And then I downloaded MySql WorkBench. At workbench's connection configuration I put hostname as "127.0.0.1", port "3306", user: "root", password is empty. I click "test connection" and it gives me this error: "Can't connect to MySQL server on '127.0.0.1' (10061)" What am I missing? See here for starting the service and here for how to make it permanent. In short to test it, open a "DOS" terminal with administrator privileges and write: shell> "C:\Program Files\MySQL\[YOUR MYSQL VERSION PATH]\bin\mysqld" Consider using

ERROR 1075: Incorrect table definition; there can be only one auto column and it must be defined as a key

孤人 提交于 2019-12-02 17:59:38
问题 I try to "alter Table" I need one more AI field, not key... "List" ID INT(11):PK Not Null AutoIn.. Name VARCHAR UserID INT(11):FK Not Null edit BOOL and now i need one more field "sortpos" as AI. I try it with MySQL Workbench ALTER TABLE `**mydb**`.`List` ADD COLUMN `sortpos` INT(11) NOT NULL AUTO_INCREMENT AFTER `edit`; Can u help me? Thx 回答1: You can't get better error message than this one. You already have ID defined as Auto Increment in your table. Now you are trying to add another field

MySQL Compatibility with MacOS Sierra

最后都变了- 提交于 2019-12-02 17:39:58
Does anybody know of any compatibility issues or quirks with MySQL Community Server/Workbench on macOS Sierra? I recently did an installation on a Mac that had never held MySQL before and it doesn't seem to be working correctly. (Now maybe I just set it up wrong, but the since the installer offers no advanced options that doesn't seem to be the case.) I can create schemas and tables, but when I go to actually query the table nothing happens. The activity indicator spins endlessly. I took a look at Activity Monitor and it doesn't show mysqld actually doing anything—the whole setup just appears

MySQL Workbench EER Diagramm - how to change storage engine?

橙三吉。 提交于 2019-12-02 17:31:33
I use MySQL Workbench 5.2.38. and I have made an EER Diagram. But on export I got surprised with InnoDB as defined storage engine. Altering the table afterwards is not an option because I do not have an InnoDB engine. ERROR 1286 (42000): Unknown storage engine 'InnoDB' So, I have changed the Default Engine via Edit-> Preferences -> Model: MySQL to MyISAM but on export there is still InnoDB in use?! I am completely unable to find the option to change the storage engine in table editor. Can someone help me how I can change the storage engine for my tables in MySQL Workbench ERR? It's not very

Creating UNIQUE constraint on multiple columns in MySQL Workbench EER diagram

被刻印的时光 ゝ 提交于 2019-12-02 17:25:59
In MySQL Workbench's EER diagram, there is a checkbox to make each column in a table unique, not null, primary key etc. However, I would like to have a UNIQUE constraint on multiple columns. Is it possible to add it in in MySQL Workbench's EER diagram? EDIT: Ok, I realised the unique checkbox, creates a UNIQUE INDEX, and not a UNIQUE CONSTRAINT In the Alter Table dialog of MySQL Workbench: Go to Indexes tab. Double-click on a blank row to create a new index. Choose 'UNIQUE' as the index type. Check the columns that you want to be unique together. There's some discussion as to whether this is

Using mysqldump to format one insert per line?

只愿长相守 提交于 2019-12-02 17:24:48
This has been asked a few times but I cannot find a resolution to my problem. Basically when using mysqldump, which is the built in tool for the MySQL Workbench administration tool, when I dump a database using extended inserts, I get massive long lines of data. I understand why it does this, as it speeds inserts by inserting the data as one command (especially on InnoDB), but the formatting makes it REALLY difficult to actually look at the data in a dump file, or compare two files with a diff tool if you are storing them in version control etc. In my case I am storing them in version control

MySQL Workbench not displaying query results

余生长醉 提交于 2019-12-02 17:22:51
When I query a table in MySQL Workbench, no results are shown, the result section is just blank, no grid or anything. However if I export the data, it is all there. Everything worked fine until a couple days ago. Query settings: Max Length = 65536 Continue on SQL Script Error = true "Safe Updates = true Leave autocommit mode enabled = true Progress status update interval = 500 Default algorithm for ALTER table = Default Default lock for ALTER table = Default Limit Rows = true Limit Rows Count = 1000 Max Field Value Length to Display = 256 Treat BINARY/VARBINARY as nonbinary character string =

MySQL Workbench - How to synchronize the EER Diagram

旧街凉风 提交于 2019-12-02 16:36:44
I am creating a visual representation of my existing database with MySQL Workbench and I am able to synchronize the models with the "Database -> Synchronize Model..." menu. However, every time I synchronize (update) my model, I have to recreate the EER Diagram and rearrange all the tables. Is there a way to update or synchronize the EER Diagram as well? Thanks. Jeff B Database > Synchronize Model... Choose Stored Connection Select the Schemata Choose which to update: Model or Source (in your case, point arrows to Model) Are you by any chance using a MySQL DB engine that doesn't support foreign

How to generate the whole database script in MySQL Workbench?

断了今生、忘了曾经 提交于 2019-12-02 15:02:42
I want to take the whole database. Where do I find the database file? And is there a way to write the whole database with all data to a text file (like the one in SQL Server)? mingos Q#1: I would guess that it's somewhere on your MySQL server? Q#2: Yes, this is possible. You have to establish a connection via Server Administration. There you can clone any table or the entire database. This tutorial might be useful. EDIT Since the provided link is no longer active, here's a SO answer outlining the process of creating a DB backup in Workbench. How to generate SQL scripts for your database in