Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Column Input Greyed out in MySQL Workbench

I am using MySQL Workbench 6 CE to create some tables for a new schema I made.

When I create the new table, the application displays a tab which allows me to edit the table name (by default, the name is new_table), select the schema default, and add a comment for the table (though doing that seems to generate syntax errors in the generated SQL).

What it does not do is allow me to specify or configure any of the columns for the table. There is an entire column section that is completely greyed out.

I am logged in as root and root has all privileges for this schema.

Have I found a bug, or is there something special I need to do in order to allow column specification in a table???

Someone please advise...

UPDATE: Adding screenshot as requested...

Screenshot of greyed out inputs (schema redacted for nondisclosure reasons)

like image 402
Factor Three Avatar asked Mar 26 '14 19:03

Factor Three


People also ask

How do I add a column in MySQL Workbench?

To add a column, click the Column Name field in an empty row and enter an appropriate value. Select a data type from the Datatype list. Select the column property check boxes as required according to the list of column properties that follow. For a description of each item, see CREATE TABLE.

How do I turn off read only mode in workbench?

Fix the Read-Only Table in MySQL Workbench. Move your mouse over the "Read Only" text to fix the read-only table in MySQL Workbench. A tooltip will appear that shows what's wrong. The tooltip shows that the table needs a unique row identifier.

How do I enable edit options in MySQL Workbench?

To access the MySQL Table Editor, right-click a table name in the Navigator area of the sidebar with the Schemas secondary tab selected and click Alter Table. This action opens a new secondary tab within the main SQL Editor window.

How do I edit a column in workbench?

Right click the table shown at the left in Schema tab of workbench and then select Alter Table . You will get a window like this -> Here you can see the column names available, edit here and click on apply.


2 Answers

Click on the encircled double arrow

Click on the encircled double arrow

You will now be able to edit columns. Click on any column name, grey area will become editable now.

like image 163
abhinaw kumar Avatar answered Sep 21 '22 20:09

abhinaw kumar


When you started creating a new table you can simply add columns by double clicking the empty placeholder row:

enter image description here

like image 29
Mike Lischke Avatar answered Sep 20 '22 20:09

Mike Lischke