1064 - You have an error in your SQL syntax
I\'ve just done a fresh install of XAMPP and configured the usernames and passwords for ph
I have seen this problem on a couple of my students' machines, this year, while trying to teach them some basic SQL using XAMPP with PHPMyAdmin as an introductory user interface.
It seemed from the error message that PMA was appending nonsense SQL onto the end of the SQL statements when trying to open certain tables, even when clicking on their name in the sidebar.
Dropping the database and re-creating it didn't help, and unfortunately no obvious answers were forthcoming on my Google search.
After determining that the problem was PMA related, and likely related to user-specific configurations, I did a little digging around in the phpmyadmin
database.
I found the nonsense SQL that was being appended to the queries in a row in the phpmyadmin
.pma_table_uiprefs
which associated the problem with my student's username, and the specific database and table name that was causing her the trouble. Jackpot! I deleted this row.
After deleting that row, though, I tried shutting down and restarting Apache, MySQL, even my web browser, and the problem persisted. It wasn't until a total reboot of her machine that the problem vanished. (This was a Windows machine, FWIW, YMMV.)
Hope this helps.
Simón Ruiz
Canterbury
Technology