Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not create table in MySQL workbench 5.2.40

I've just created anew schema & want to create a new table. When ever I right click on 2myschema' that I created, and select 'new table',

enter image description here

I give a name for the table to be created, but I get the following error:

enter image description here

I searched about the error, and I found that the cause if I typed a reserved word such as 'order' but there is no way that table2 is reserved word, and I tried many different names and always get the same message. The column Name is not activated, so I can't enter column names.

like image 254
Jury A Avatar asked Jun 28 '12 13:06

Jury A


People also ask

Why can't I create a table in MySQL?

To solve 'MySQL ERROR 1005: Can't create table (errno: 150)' you likely just have to ensure that your foreign key has the exact same type as the primary key.

How do I insert a table into MySQL Workbench?

In order to start adding data to a table, right-click the table (in the SCHEMAS pane) to be modified and click Select Rows. You will then find yourself in a window that allows you to enter data (Figure E). In this window, you can either use the result grid or open the form editor.


1 Answers

I figured out that the columns area was not disabled, but it needed scroll down from the thin rectangle as shown below. I was trying to type column name in the square below this rectangle and beased on that I described it as disabled.

enter image description here

like image 79
Jury A Avatar answered Sep 22 '22 14:09

Jury A