When you try to insert a single row in a table using PhpMyAdmin it has a default number of rows to insert set to 2, so everytime I have to change that value to 1, otherwise it throws a truncated error, and adds 2 rows (The second one being empty). How can I change this default value to 1 ?
3 Answers
From the phpMyAdmin main page:
Settings > Main panel (or: Main frame) > Edit mode > Number of inserted rows
Change the value and hit Apply.
Tested with phpMyAdmin 3.4.11 and 4.2.10. See also phpMyAdmin 4.2 documentation: $cfg['InsertRows'].
Comments
There's currently no way to change the number of rows that are displayed there (though I suppose you could open a feature request for that if you wish).
However, I'm completely unable to reproduce your trouble. As DanFromGermany says, the ignore checkbox is selected by default, so unless you actually un-check the checkbox manually or type in one of the fields for the second row, it's ignored. Your response to his comment doesn't make sense because you shouldn't be unchecking it (the label is "ignore" so un-checking it says "do not ignore" the second row); in fact you shouldn't need to do anything, the default action is to ignore that. Perhaps you could post a screenshot of your screen just before submission of the form? What phpMyAdmin version do you have?


Ignoreat the second insert, which is checked by default and turned off when you put a value in one of the inputs. Don't you have that checkbox? Do you use a recent version of phpMyAdmin?