-
-
Notifications
You must be signed in to change notification settings - Fork 511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line with only mysql specific comment returns an error instead of ignoring (mysqldump integration) #326
Comments
could you provide you index config and mysqldump command that you use? |
Config
Index
mysqldump
Keep in mind this error is not related to an index, see the steps I posted, it's using a plain query call. It just doesn't get properly interpreated when it has a line with only a mysql specific comment. |
yes I understand. Just wanted to check whole commands flow and not ping-pong each command fix |
➤ Sergey Nikolaev commented: FFR: mysqldump does many more things that Manticore might not understand. Even if I disable all which can be disabled I still see the following queries from mysqldump:
|
My objective was to make backups of the rtindexes, I'll be copying/snapshot the datadir instead. Feel free to close the issue, the mysql specific comment only query would make it clear mysqldump wont' work on manticore. Thanks for looking into it :-) |
Even though mysqldump might be not the best solution for backups in general it might work in some cases:
we've decided to give it a try by skipping the queries it issues that do not make sense for Manticore. So I'm reopening the issue. |
I know this is taking about getting the actual It's a PHP script that kinda mimics mysqldump, intended so can run arbitrary queries to dump a fake table. (think of like dumping a view -with the data to recreate as a real table) It works for dumping a RT index :)
the 'fake' is just because the script expects a database name, not applicable to searchd. It uses a temporary table to create the schema, so that doesnt work, but easily disabled. Anyway, it might not exactly fit needs, but though post it in case. Its a relative short PHP script, so quite tweakable. (eg if have more than 1000 (ie maxmatches) documents, will need extending to dump bigger. maybe even to run queries in a loop) |
FYI: there's now tool Integration with |
➤ Don Hardman commented: It seems like |
➤ Sergey Nikolaev commented: Testing on
|
➤ Sergey Nikolaev commented: FFR: This is wrong:
One has to do either |
Great news! The latest development version of Manticore Search now supports |
Mysql's mysqdump looks ok too in the latest dev version. The dev documentation can be found here https://manual.manticoresearch.com/dev/Securing_and_compacting_a_table/Backup_and_restore#Restore-by-using-manticore-backup-tool Closing the issue as done. |
Describe the environment
macos catalina 10.15.3
Manticore Search version
Manticore 3.4.0 0686d9f@200326 release
OS version
Darwin xxxxxx 19.3.0 Darwin Kernel Version 19.3.0: Thu Jan 9 20:58:23 PST 2020; root:xnu-6153.81.5~1/RELEASE_X86_64 x86_64
Build version:
manticore-3.4.0-200326-0686d9f0-release-osx10.14.4-x86_64-bin.tar.gz
Describe the problem:
I'm trying to run
mysqldump
on an RTINDEX, but just can't run it at all since sphinxql cannot ignore the first mysql specific comment thatmysqldump
throws at the connection.Steps to reproduce:
Messsages from log files:
Nothing in the
searchd.log
andquery.log
, the following is the error thrown by the mysql41 protocol.The text was updated successfully, but these errors were encountered: