I am trying to import a sql file into a database hosted by my web host via its MYSQL administration program mysqladmin. Mysqladmin has an Import button that from what I can tell just runs some sql code. When I go through the steps, however, it give me the errors below. (I tried getting help from customer support but they don't support this.)
Here is what appears in pink in the error box:
Error
SQL query:
CREATE TABLE IF NOT EXISTS `bookquotes` (
`index` VARCHAR(MAX) NULL,
`index_id` INT NULL,
`type` VARCHAR(MAX) NULL,
`line_id` INT NULL,
`book_name` VARCHAR(MAX) NULL,
`speech_number` INT NULL,
`line_number` VARCHAR(MAX) NULL,
`speaker` VARCHAR(MAX) NULL,
`text_entry` VARCHAR(MAX) NULL
)
MySQL said: Documentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'MAX) NULL,
`index_id` INT NULL,
`type` VARCHAR(MAX) NULL,
`line_id` INT NULL,
`p' at line 2
Would appreciate any suggestions in what is wrong with the above SQL (I could run sql to add the table myself in PHP if I can get the right syntax) or otherwise how to import a sql file into a remote database.
Thanks for any suggestions.