mysql-workbench

Configuration file '' can not be found

落花浮王杯 提交于 2019-12-11 12:09:50
问题 I'm using mysql-server 5.5 and had created a server instance. After created I try to open the instance editor and select Options File in CONFIGURATION but it says Configuration file '' can not be found. New file will be created on apply of changes and then Configuration file did not contain section [], so a new one was added. If that is not correct, please fix the section name in the Server Instance Editor and reopen the administrator. But I have checked and see that I have a my.cnf at /etc

Read-only after inner join (MySQL)

老子叫甜甜 提交于 2019-12-11 10:40:10
问题 In MySQL workbench (Mac OS), I wanted to join two tables so that I can update the second one. The code I put in was as follows select f.company, f.remarks, c.pic from feedback f, customers c where f.col = c.col order by f.company; The output is a read only table, which prevented me from updating table "customers" based on the f.remarks column. Your advice/suggestion is appreciated. Thank you. 回答1: By hovering above the "Read Only" icon, I got the following message: "Statement must be a SELECT

setting useLegacyAuth=1 in Workbench 6.0

一世执手 提交于 2019-12-11 10:08:32
问题 I have been trying the useLegacyAuth=1 setting in the advanced option box, unfortunately its not holding the line. This line disappear immediately after I connect!! any clues please? Workbench version: 6.0.7 I can connect to the server (by checking the disable secure auth checkbox), but when I do a backup its keep failing. Please help. 回答1: try to add "useLegacyAuth=1" in "Others" area, located in "Advanced" pill on connection configuration. (with quotes) 回答2: In advanced pane, check the box

CASE in MySQL forces column datatype to BIGINT instead of INT

烂漫一生 提交于 2019-12-11 10:00:23
问题 Well it would rather be a very simple thing but I couldn't figure out myself. While trying the below line in Stored Procedure in MYSQL server, it converts or sets the column datatype to BIGINT instead of expected INT CASE `L`.`Code` WHEN 'ABCD' THEN 0 ELSE `XL`.`ID` END as XLID The magical thing is that if I remove the 0 from it, then it returns INT as datatype as expected. So this 0 is to blame for sure, but I couldn't understand why and how to resolve this? I tried to use CAST but it didn't

Generate Unique AI ID over multiple data tables

坚强是说给别人听的谎言 提交于 2019-12-11 08:46:23
问题 I am designing a database but I come to a struggle at this moment, Currently I have 3 tables: ex_artists ex_tracks ex_labels Now I wish to have a Unique ID throughout these 3(or more) tables So if 'Example Artist' had ID '1', then 'Example Track' can not also have ID '1' but should get ID '2' since '1' already exists Thank you greatly in advance! 回答1: I understand your concerns. Once you decide to design your database with technical IDs, there is always the danger of confusing IDs. While

Import database from sql file [closed]

允我心安 提交于 2019-12-11 06:29:48
问题 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 . I'm beginner in sql. I have a question, how can I import the database from sql file. I tried option "import a script file" but it doesn't work. I attach a screenshots and my sql file screenshot sql file Thank you in advance for your help 回答1: To get started, you will need: A .sql script file containing a CREATE

How to export mysql database to another computer?

拟墨画扇 提交于 2019-12-11 04:57:16
问题 I created a database using Mysql Workbench. Now I want to export this database to my home PC. How can I do this if the 2 PCs have no network connection? 回答1: I use mysqldump to export the database. You can use something like mysqldump -u [username] -p [database name] > backup.sql to store it in a file. After that you can import into another database via mysql -u [username] -p [database name] < backup.sql 回答2: As edit was rejected posting it as an answer; hope it will be helpful. Followed to

Mysql Workbench is not reading records inserted through JDBC

混江龙づ霸主 提交于 2019-12-11 04:25:09
问题 Description: The autocommit value in workbench had been set to 0( zero ), then I insert a record to a table and successfully committed the transaction in Java App client through jdbc. I execute select query in the command line and the record just inserted had successfully be fetched, but execute the same query script in workbech, the record just inserted could not be fetched. only after executing the commit command in the workbench, the record can be queried. How to repeat: set autocommit=0

MySQL Workbench 6.1 - No option to insert rows?

…衆ロ難τιáo~ 提交于 2019-12-11 03:04:57
问题 Version 5.2 of MySQL Workbench has an option to add rows to a table graphically, right clicking the table name from the list of tables. This option is really lacking in MySQL Workbench 6.1 or is it hidden? On an Ubuntu 13.10. MySQL Workbench 6.1 回答1: I'm usually looking at the contents of a table before I add a row to it, and there's always an empty row at the bottom of the result set (the whole row is nullified) which you can click on and add content to. Then just hit "Apply". 回答2: It should

Getting conditions for WHERE clause from a table of criterias

試著忘記壹切 提交于 2019-12-11 02:23:15
问题 I created the following simple DataModel : And I filled the tables with the following Data: 1) Table Customer INSERT INTO test.customer (CustomerName, Country, RegistrationDate) VALUES ("Customer A","DE","2015-05-03"), ("Customer B","US","2015-07-25"), ("Customer C","US","2016-02-15"), ("Customer D","DE","2017-09-21"), ("Customer E","AU","2018-12-07"); 2) Table Orders INSERT INTO test.orders (idCustomer, PaymentMethod, OrderDate, OrderValue) VALUES ("1","CreditCard","2015-05-04","500"), ("1",