#1424 Posted in ‘CommentBox’

Latest post by Lefteris Kavadas on Tuesday, 07 October 2025 14:36 EEST

shenkesh s
I saw an error while copying the database:
Error
Static analysis:
1 errors were found during analysis.

Missing comma before start of a new alter operation. (near "ADD" at position 431)

SQL query: Copy  Edit
ALTER TABLE `***_menutag`.`***_commentbox_comments` ADD PRIMARY KEY (`id`), ADD KEY `idx_parent_id` (`parent_id`), ADD KEY `idx_page_id` (`page_id`), ADD KEY `idx_state` (`state`), ADD KEY `idx_flagged` (`flagged`), ADD KEY `idx_reactions` (`reactions`), ADD KEY `idx_votes` (`votes`), ADD KEY `idx_upvotes` (`upvotes`), ADD KEY `idx_downvotes` (`downvotes`), ADD KEY `idx_score` (`score`), ADD KEY `idx_created` (`created`, ADD KEY `idx_created_by` (`created_by`);
MySQL said:
#1064 - You have an error in your SQL syntax; check the manual
that corresponds to your MariaDB server version for the right syntax to
use near 'ADD KEY `idx_created_by` (`created_by`)' at line 1

Lefteris Kavadas

Hi,

It looks like there’s a small syntax issue in your SQL query — a missing parenthesis before the last ADD KEY.

Please try running the export/import again — sometimes this error occurs due to how the SQL dump is generated.

Also, could you please let me know which tool you’re using to perform the database import/export (e.g. phpMyAdmin, Adminer, or another tool)?

Regards,
Lefteris

shenkesh s
I have not done any import or export.After installing Joomla and plugins, I wanted to create a copy of the database.I did not use any sql code either.I did the following steps in phpmyadmin and it gave an error:operations>Copy database to=error

Lefteris Kavadas

Thanks for the clarification!

It seems the error occurred while phpMyAdmin was trying to automatically generate SQL during the “Copy database” operation. Sometimes this happens if phpMyAdmin encounters a table definition it can’t parse correctly.

Please try the copy process again — it might have been a temporary glitch.

Also, could you please confirm which version of phpMyAdmin and MySQL or MariaDB you’re using? This will help me understand why phpMyAdmin generated that incorrect query.

Regards,
Lefteris

shenkesh s
Database server
    Server type: MariaDB    Server version: 11.4.7-MariaDB - MariaDB Server    Protocol version: 10    Server charset: (latin1)
Web server
    cpsrvd 11.130.0.3    Database client version: libmysql - mysqlnd 8.4.10    PHP extension: mysqli Documentation curl Documentation mbstring Documentation    PHP version: 8.4.10
phpMyAdmin
    Version information: 5.2.2 

Lefteris Kavadas

Thanks for the details!

Everything looks up to date — you’re using phpMyAdmin 5.2.2 with MariaDB 11.4, so this seems to be a phpMyAdmin quirk rather than a version issue. Occasionally, phpMyAdmin’s “Copy database” feature generates slightly incorrect SQL when a table includes multiple key definitions (like in the CommentBox table).

Please try running the copy again — sometimes it works on a second attempt.

If the same error appears again, I can guide you through an alternative way to copy the database using Export → Import in phpMyAdmin, which avoids this issue completely. Would you like me to send you the exact steps?

Best Regards,
Lefteris

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review