I am building an app (JavaFx application) whose logic is completely dependent on the column names and the table names of the available database (which is in MySQL). Everything was fine as long as the column names were small enough. I encountered a major setback in a certain module which required the column names to be quite long. I came to know that MySQL does not allow column names to be larger than 64
characters.
I've tried doing:
ALTER TABLE information_schema.`COLUMNS` MODIFY COLUMN COLUMN_NAME varchar(256);
But I'm getting the following error:
#1044 - Access denied for user 'root'@'localhost' to database 'information_schema'
root
has the highest privilege but its still not allowing me to alter the information_schema
.
Am I doing something wrong? Is there another way?
Or is there any other application (other than MySQL) that I can use (given that it gives the above facility of changing the maximum length of the column name).