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...
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.
When you started creating a new table you can simply add columns by double clicking the empty placeholder row:
I have had the same prb in MySQL Worbench 6.3.6. Here is the link to the solution.
Or just drag down your Output Panel in short !
http://bugs.mysql.com/bug.php?id=79281
You have to checked any key to enable the column name.
please check PK,NN, UQ, B etc then column are ready to edit.
Related
I have an Access-based Employee table and have a field to hold username values. The username format for the application I'm tracking is FirstinitialLastname ("JDoe").
However, when I enter the username value in my Employee table, Access is automatically changing it to "Jdoe".
Is there a way for Access to accept what is being entered into this field and not change it? Searching online I see posts for how to turn on proper case, but for this particular field I don't want it to modify what I have entered.
In the near future, this Access database will be split in order to move the data out of Access and into SQL Server. Will the issue I'm having be alleviated once the data is stored in SQL Server?
Any guidance is greatly appreciated.
Thanks!
You can stop Name AutoCorrect from Access Option. Microsoft article here in this link. Set name AutoCorrect options
When you type name like JDoe then after finishing typing, access automatically correct two capital letter and it show a small smart menu. From that you can also make changes to stop auto correct. See below screenshot.
I may be misunderstanding the use of Name AutoCorrect Options and the Perform Auto Name AutoCorrect tick box as shown above.
I thought this was the very handy feature that if you had a table originally called Customers (with an s on the end) and had built many queries or forms etc based on this, when you changed the table to Customer (without the s on the end), Access would change all your SQL statements automatically for you on the your queries etc so the database didn't stop working.
Apologies if I am wrong but just wanted to check of a knock on effect because you wanted data entry values to stop being changed too.
One fix may cause a bigger issue is all I am worried about. I recently had a customer with a surname of Teh but Access kept changing his surname to The automatically so I just unticked the box for 'Replace text as you type' to stop that happening. It seems to have worked well.
I really like the Name AutoCorrect option for table or query renames etc as I used to hate having to go in an change all my queries back in the day
Apologies again if I have got the wrong end of the stick on this discussion and gone off on a very unhelpful tangent by misunderstanding things in the first place - my wife tells me I have a habit of doing this and my wife is always right
I've been trying to use PhpMyAdmin for a while, and after a lot went wrong, I finally got it working. However, I have one more question that isn't at the top of my list but would be nice to have solved. How do you edit a value of a column in PhpMyAdmin? Right now I have the fields 'username' and 'password'. I've added a value to them but now I can't find where to edit or remove that value.
Can anyone help me?
Thanks
I found out the solution as I had the same problem.
It's not about versions!
You need to have a column that is primary as it make it unique, otherwhise phpmyadmin would not let you edit from here.
That's why it doesn't work for you either, if you only have the fields 'username' and 'password' and no "id" or so, then no unique column and so can't fast edit.
It probably depends on your version. In my current version (4.4.14), it looks as follows:
After you selected your database & table on the left side, you need to Browse that table (marked yellow). Then you can edit or delete rows. It is even possible to double click a value in a cell to directly edit it (newer versions).
I have installed MySQL Workbench and I have the following problem.
I perform this simple select query:
SELECT * FROM spring_security.user;
that returns a list of rows.
So, in the output area, I select a field of a specific row and I try to change its value. But I can't do it.
Seems that is is impossible insert a new value for a specific field of a specific row.
Why? How can I use this tool to change a value?
You can do easy with MySql Workbench this way :
in menu database simply connect
then select the database you need and then the table.
Positioning the mouse over the table name in table schemas explore and so you can see on the rightside a table icon.
Selecting/clicking this icon you can see the date in tabular form (like Toad).
With this tabular form you can edit and apply the change
Applying the change MySql Workbench show you the sql code and ask for confirm
(the apply button is on the lower right corner of the table)
Leif Neland's comment on #scaisEdge's answer is the real solution (as indicated by the huge comment-upvote count), so here it is as an answer, to increase its visibility:
Given that:
your query selects from just one table (no join)
the table has a unique primary key
your DB user has permission to UPDATE
Then, in the Result Grid, you can edit a field by one of the following:
Click a field once to select it (the cursor changes into text cursor), and click a second time to start editing in-place in the Result Grid, or
Right click on a the field and select the "Open Value in Editor" option
After editing the value, you need to apply it:
The [apply] and [revert] buttons are at the lower right corner of the table.
— Leif Neland
As shown here:
Also, you can execute next script:
UPDATE table SET cell='new_value' WHERE whatever='somevalue'
This answer may be too late, but in case anyone needs it, MAKE SURE THE TABLE HAS A PK (Primary KEY) if it has a PK you will able to edit it in MySQL Workbanch
In phpMyAdmin, I can highlight any fields name quickly to copy and paste it in the script (eg: php files)
How do I do same process in Navicat?
Method 1:
Right click on the table name. Click "Design Table". In the columns tab, click column name header or use Ctrl/Shift to multi-select the fields you need to copy and Ctrl+C.
Method 2:
After 3 years, upon more usage of the software I found this:
In the result grid of any query, highlight one whole row, or only the columns you want (with Ctrl/Shift key pressed to multi-select), right click on highlighted area. In the context menu select
Copy as > Tab-split field name
Mind that my software is in Chinese so I translated it. Your GUI may look different but you get the point. Also the option is there for Navicat Premium. I don't know if other editions have it.
I have about 11 columns in a mysql table and none of them are empty. When I view these columns in the Browse section, some columns are hidden whereas I'm sure they exist.
I have updated phpMyAdmin to latest version (4.1.5) but that did not solve anything. I also exported the table, dropped it and imported it again but nothing changed.
How do I make all the columns visible?
You could look in the exported file to double-check that they exist there.
Another thing to try; from the table, click the SQL tab. The default text will probably say SELECT * FROM `tablename` WHERE 1, try running that and see if you get any different response.
If you click the Structure tab, do you see the columns that are hidden?
Do you have access to the command-line client? If so, can you test showing the table structure there to see if it's different than displayed by phpMyAdmin?
Edit: Have you tried a different browser?
Marc Delisle points out that the column may be hidden within phpMyAdmin; in the Browse tab look to the left of the column headers, there's a T with two arrows -- to the right of that is a small dropdown arrow. Make sure all your columns are selected there. It's doubtful this is the cause of your problem, because you dropped the table and recreated it, but it's the next thing to check.
Can you copy the table to another database for testing, verify that the problem exists there, then truncate the table (remove all data, see the Operations tab to do this), and see if it continues (that will help determine whether it's the structure or the data causing the problem)?
Can you try to export the structure only and recreate the problem on the demo server (log in with the username root and a blank password)? Can you post the structure here? Make sure you obscure any sensitive information if needed.
This question is a duplicate to this one:
phpMyAdmin doesn't show added columns
so here is my duplicate answer! I don't think I have enough kudos to flag this as duplicate yet.
Database phpmyadmin is used to store which columns are hidden, which column a table should be sorted by, etc etc. Table pma_table_uiprefs (phpmyadmin.pma_table_uiprefs) in particular has columns: username; db_name; table_name; and prefs.
I found the row in that table that matches your db_name,user_name and table_name, and deleted it. That reset the layout back to showing all columns!
The prefs column is text, and it's format could probably be deciphered if you have some spare time and energy, but deleting the row is easy and you can then adjust the layout again in phpmyadmin, and the row will be recreated in phpmyadmin.pma_table_uiprefs.
I was authenticated as root when doing this.
i just solved this with a relatively easy fix! (finally my time to give back :) )
For anyone reading in future, go to operations (top row, same as browse, structure etc). Then under Copy table to (database.table): just change the name of the table, press go. This will create a duplicate that should be fine.
Go to the same area of the problematic table and DROP it under Delete data or table. This will delete the table.
Now go to the operations of your new page and rename the table to the way it was. Like in the image linked.
Image of where to go in PHP Admin: