I have a perplexing problem. I inherited a challenging issue.
Development Environment:
Table: CustomerImage
Type: MYISAM
Columns: CustomerID (INT), Description VARCHAR(62), ImageData(LongBlob), etc.
Server Environment:
protocol_version 10
version 5.1.69-0ubuntu0.10.04.1-log
version_comment (Ubuntu)
version_compile_machine x86_64
version_compile_os debian-linux-gnu
Production Environment:
Table: CustomerImage
Type: INNODB
Columns: CustomerID (INT), Description VARCHAR(62), ImageData(LongBlob), etc.
Server Environment
protocol_version 10
version 5.1.63-0ubuntu0.10.04.1-log
version_comment (Ubuntu)
version_compile_machine x86_64
version_compile_os debian-linux-gnu
An application that pulls images from the CustomerImage table works on development. It works SOMETIMES on production. On Production, some of the images do not display. Some of them do display. The application generates an error when they don't display and it is this:
ERROR [http-443-30] (DbImageModel.java:81) - Exception occured :
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: SELECT command denied to user 'dbuser'@'123.456.789.10' for table 'CustomerImage'
I have granted rights to the table to the user using this command:
GRANT SELECT ON TABLE DatabaseName.CustomerImage TO 'dbuser'@'%';
Behavior:
Some of the images from production work and are displayed on the web page. Some do not and when that happens the SELECT COMMAND DENIED error is generated in the log. The rights on development and production are the same. The images are the same in both databases. I don't understand how it can display some images successfully on production and some won't display while all of the images do work on development.
Thank you in advance for your time and consideration. If I need to provide more information or can clarify anything please let me know. Thanks so much!
Development Environment:
Table: CustomerImage
Type: MYISAM
Columns: CustomerID (INT), Description VARCHAR(62), ImageData(LongBlob), etc.
Server Environment:
protocol_version 10
version 5.1.69-0ubuntu0.10.04.1-log
version_comment (Ubuntu)
version_compile_machine x86_64
version_compile_os debian-linux-gnu
Production Environment:
Table: CustomerImage
Type: INNODB
Columns: CustomerID (INT), Description VARCHAR(62), ImageData(LongBlob), etc.
Server Environment
protocol_version 10
version 5.1.63-0ubuntu0.10.04.1-log
version_comment (Ubuntu)
version_compile_machine x86_64
version_compile_os debian-linux-gnu
An application that pulls images from the CustomerImage table works on development. It works SOMETIMES on production. On Production, some of the images do not display. Some of them do display. The application generates an error when they don't display and it is this:
ERROR [http-443-30] (DbImageModel.java:81) - Exception occured :
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: SELECT command denied to user 'dbuser'@'123.456.789.10' for table 'CustomerImage'
I have granted rights to the table to the user using this command:
GRANT SELECT ON TABLE DatabaseName.CustomerImage TO 'dbuser'@'%';
Behavior:
Some of the images from production work and are displayed on the web page. Some do not and when that happens the SELECT COMMAND DENIED error is generated in the log. The rights on development and production are the same. The images are the same in both databases. I don't understand how it can display some images successfully on production and some won't display while all of the images do work on development.
Thank you in advance for your time and consideration. If I need to provide more information or can clarify anything please let me know. Thanks so much!