Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I set up integers in phpMyAdmin to be unsigned by default?

How can I set up integers in phpMyAdmin to be unsigned by default? Most times I am setting them to be auto-incremented, and I don't need the negative values. Is there a way I can do this?

like image 293
cwd Avatar asked Jul 08 '11 19:07

cwd


2 Answers

This is possible in the later version of phpMyAdmin using the Attributes option.

like image 86
Ryaner Avatar answered Sep 30 '22 20:09

Ryaner


  1. Setting integers unsigned via UI.

    • Open the dropdown menu against the Attributes column in the table structure.
    • Select "unsigned" and click save.

unsigned screenshot phpmyadmin

Unfortunately there doesn't seem to be a way to do this by default. However you can check multiple columns and click edit to change those at once via the phpmyadmin UI as shown below. enter image description here

like image 36
Rishi Dua Avatar answered Sep 30 '22 19:09

Rishi Dua