Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tuvshintugs's avatar

Is there a problem with proxysql not working in Laravel?

I am running ubuntu 22.04. I have ProxySQL version 3.0.2-30-gafb1865 installed on this server. I also have 2 laravel projects running on this server. I am having trouble accessing the database using Laravel tinker. However, accessing it from the web is not working at all. checked tinker command DB::connection()->getDatabaseName(); = "test_b2b" There is a problem with proxysql not working in Laravel. App\Models\User {#6063 id: 1, name: "Tuvshuu", phone: 99995050, email: "[email protected]", email_verified_at: "2025-05-14 14:24:54", created_at: "2025-05-14 11:53:20", updated_at: "2025-07-29 18:49:10", }

Has anyone encountered this problem? Please help me.

0 likes
2 replies
Tray2's avatar

I think you need to ask yourself why you are setting up a proxy for your app, a MySQL/MariaDB server can handle a lot of traffic and data before ever needing a load balancer.

Please or to participate in this conversation.