Please tell me in phpmyadmin - the fields in some tables in my database can be changed, while others can not.
I understand they are just for reading ? How do I put the tables I need to change (write)?
Please tell me in phpmyadmin - the fields in some tables in my database can be changed, while others can not.
I understand they are just for reading ? How do I put the tables I need to change (write)?
MySQL allows you to manage the rights of database users at the server level, a specific database and individual tables (with indication of specific fields).
You can create a user who can perform SELECT
only in the website
database for the users
table (and limit the selection to only the name
and id
fields) and allow him only UPDATE
the name
field of the users
table.
The problem was solved by the following line
ALTER TABLE tablename ADD newid INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST;
the mistake was
This selection does not contain a unique column.
Source: https://ru.stackoverflow.com/questions/433853/
All Articles