Connect to mysql database with ray

hi ,
i want to connect mysql db with ray , is it possible ?

if is not , how can i access data on mysql db using ray ?

Thank you

It should be possible. But if you are using ray tasks, you might need to reinitiate the db connection whenever new tasks are spawned, so I’d recommend you to use an actor for this use case.

thank you sangcho , are there any articles for this ?

Hmm not that I now. @simon-mo do we have any document that shows this example? I think it is a pretty common use case for serve applications.