?
Solved

MySql will not update via phpmyadmin

Posted on 2013-05-29
5
Medium Priority
?
709 Views
Last Modified: 2013-05-29
Hello,
I have a MySql database on a 1and1 server.

I wish to update a field tinyint(1) which defaults to NULL.

I use phpmyadmin
From Browse I go into the edit form and update the field with a tick box.

When I look at the record  via Browse the field is still at NULL.

If I go back into Edit Mode the tick box is still ticked.

Has anyone any idea how this can be rectified please?
Many thanks

John
0
Comment
Question by:johnhardy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 9

Expert Comment

by:TvMpt
ID: 39203829
Hi.

I guess when you change the table structure and the field still accepts null you must update all records with a number from [0..9] (tinyint(1))

Could you show a screenshot of the tick box you are talking?
0
 

Author Comment

by:johnhardy
ID: 39203851
I am not sure if the edit form is a normal part of phpmyadmin I expect it is.

I am attaching a shot of the edit / update form
Edit-Form.jpg
0
 
LVL 4

Assisted Solution

by:Ahmed Hussein
Ahmed Hussein earned 800 total points
ID: 39203859
Uncheck that box if it's the NULL checkbox, it sets the default for the filed to null.
0
 
LVL 9

Accepted Solution

by:
TvMpt earned 1200 total points
ID: 39203868
If you want to disable null values for that records you have to untick the box and write default values in the record or make a massive update to 1 or something in all rows for that 2 columns (frontpageshow / imageshow )
0
 

Author Closing Comment

by:johnhardy
ID: 39204012
Many thanks
0

Featured Post

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question