mysql-workbench

Some keys not working properly on MySQL Workbench for Mac

我的未来我决定 提交于 2020-01-14 08:07:10
问题 I'm using MySQL Workbench 6.3.9 for Mac and I'm having an unexpected issue. When writing SQL on the editor (any editor), it won't take my quotes (single or double) and some other special characters... For me to type a single quote, I'm having to hold Control key and then type the single quote... Is this a know issue? Is there a solution for this out there? 回答1: It's a bug on 6.3.9 version for Mac. Quotes will only work if you're using "standard US keyboard layout". But you can configure just

Error 1215: Cannot add foreign key constraint

女生的网名这么多〃 提交于 2020-01-11 09:47:21
问题 I built a database with mySql Workbench, but when I try to forward engineer my model to the server, I get the following error : ERROR: Error 1215: Cannot add foreign key constraint followed by the definition of the table where the foreign key is defined, salaire_annee_ca I read similar topics to identify the usual causes for this error, and checked : if the foreign key defined in salaire_annee_ca references the primary key of another table, which it does if something in the code allowed my

How to insert/create stored procedures in mySQL from PHP?

China☆狼群 提交于 2020-01-10 19:43:26
问题 I've got a number of stored procedures made with the MySQL Workbench. They work just fine when use MySQL workbench to put them into my test DB. Now I am preparing the DB creation scripts for deployment, and this is the only one giving me trouble. When I use the command line / mysql shell, the script works perfectly well to. It's only when I use the PHP mysql(i) interface to execute the script - it fails. Without comment. I use the procedure creation scripts as MySQL workbench generates for me

Exporting only table structure using mysqlworkbench

↘锁芯ラ 提交于 2020-01-10 12:03:21
问题 Can anybody tell whether it possible for exporting only the table structure using MySQL workbench 回答1: To get an individual table's creation script: just right click on the table name and click Copy to Clipboard > Create Statement. To enable the File: Forward Engineering SQL_CREATE Script.. option and to get the creation script for your entire database: Database > Reverse Engineer (Ctrl+R) Go through the steps to create the EER Diagram When viewing the EER Diagram click File > Forward

What do column flags mean in MySQL Workbench?

99封情书 提交于 2020-01-10 06:14:05
问题 This question's answers are a community effort . Edit existing answers to improve this post. It is not currently accepting new answers or interactions. In MySQL Workbench table editor there are 7 column flags available: PK, NN, UQ, BIN, UN, ZF, AI. PK obviously stands for Primary Key. What about others? 回答1: PK - Primary Key NN - Not Null BIN - Binary (stores data as binary strings. There is no character set so sorting and comparison is based on the numeric values of the bytes in the values.)

What do column flags mean in MySQL Workbench?

佐手、 提交于 2020-01-10 06:14:00
问题 This question's answers are a community effort . Edit existing answers to improve this post. It is not currently accepting new answers or interactions. In MySQL Workbench table editor there are 7 column flags available: PK, NN, UQ, BIN, UN, ZF, AI. PK obviously stands for Primary Key. What about others? 回答1: PK - Primary Key NN - Not Null BIN - Binary (stores data as binary strings. There is no character set so sorting and comparison is based on the numeric values of the bytes in the values.)

Failed to add the foreign key constraint. Missing index for constraint Error Code: 1822

依然范特西╮ 提交于 2020-01-06 09:36:06
问题 So I'm trying to create a table 'Prerequisite_to', which is basically a relation that shows what classes are considered as a prerequisite for a specific class. Here are my SQL tables defections: CREATE TABLE Class( infs CHAR(4) NOT NULL, course_number CHAR(3) NOT NULL, PRIMARY KEY (infs,course_number)); CREATE TABLE Prerequisite_to( infs CHAR(4), course_number CHAR(3), PRIMARY KEY (infs,course_number), FOREIGN KEY (infs) REFERENCES Class(infs), FOREIGN KEY (course_number) REFERENCES Class

Error 1142: SELECT and LOCK TABLE commands denied

╄→гoц情女王★ 提交于 2020-01-06 07:53:18
问题 I reinstalled the server running MySQL. I had created a backup of the database by using MySQL Workbench. Now I'm trying to import the dump in to the database trough the same program but I get the following error: ERROR 1142 (42000) at line 656: SELECT,LOCK TABL command denied to user 'root'@'MIKKOS' for table 'events_waits_summary_by_thread_by_event_name' I tought that root had full privileges. I ran the following but the same error appears with the previous query after executing this: GRANT

Copy ec2 files to local

拜拜、爱过 提交于 2020-01-06 03:17:16
问题 I would like to create a local copy of a live Magento website, so that I can test and develop on my local version. I did the following so far: installed XAMPP for Mac OS X 1.7.3; created a blank database; installed MySQL Workbench 6.0 for Mac; tried to connect to AWS EC2 and RDS instances via SSH following this scheme http://thoughtsandideas.wordpress.com/2012/05/17/monitoring-and-managing-amazon-rds-databases-using-mysql-workbench/; but I can't connect (it says authentication failed but

Importing Data and Schema to MySQL Workbench

社会主义新天地 提交于 2020-01-05 07:23:06
问题 I'm trying to learn SQL and I downloaded a database to practice. I downloaded two files of extension .sql, one is the schema and the other one the actual data. I've also installed MySQL Workbench. I've been googling and I've been trying things to solve this but I don't understand Workbench and I can't load the database. Where do I import the schema and the data in order to try queries ? Any help would be really appreciated. 回答1: This is simple in Workbench, and I'll use the freely available