DEV Community

Discussion on: How to get data from an MySQL database in React Native

Collapse
 
bilginba profile image
Batuhan Bilgin • Edited

Hi Saulo, thank you for the solution. In my project, I access the MySQL database. I can call and run queries through the program. If you inspect the attached image, I call queries and execute them until they become become dysfunctional or not called at all.

I found a solution and increased the maximum number of connections with the
SET GLOBAL max_connections = 150;

However, it didn't affect the outcome.
How can I overcome this situation?

I also posted this question on Stack Overflow.
If you want to inspect the code,

stackoverflow.com/questions/594727...

Collapse
 
saulojoab profile image
Saulo Joab

Hey man, sorry I took so long. I've been absolutely busy haha

This post is pretty outdated, so instead of creating a lot of connections, you should create a connection pool.

This might help you: stackoverflow.com/questions/184965...