Skip to content
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

How to specify a database #24

Open
zxuewu opened this issue May 31, 2023 · 2 comments
Open

How to specify a database #24

zxuewu opened this issue May 31, 2023 · 2 comments

Comments

@zxuewu
Copy link

zxuewu commented May 31, 2023

I checkout all the file, I did not find an example on how to specify database. So I try to use Sphinxql() function directly, like

cl := manticore.NewClient()
cl.SetServer("localhost", 9312)
cl.Open()
foo, err := cl.Sphinxql("select * from kgall; show meta;")
fmt.Println(foo, err)

But I got " [ERROR 1064 (42000): unknown local table(s) 'kgall' in search request] " for response.
What should I do to do a query job.

@zxuewu
Copy link
Author

zxuewu commented May 31, 2023

kgall is a table of the database that I want to specify.

@sanikolaev
Copy link
Contributor

I did not find an example on how to specify database

Manticore doesn't support databases yet, all tables are just in the same database. You don't have to specify it.

But I got " [ERROR 1064 (42000): unknown local table(s) 'kgall' in search request] " for response.

Make sure table kgall exists: mysql -P9306 -h0 -e "show tables"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants