What is the best way to connect (The fastest)

Discussion of open issues, suggestions and bugs regarding database management and administration tools for MySQL
Post Reply
coolapps
Posts: 3
Joined: Mon 22 Aug 2022 14:15

What is the best way to connect (The fastest)

Post by coolapps » Mon 22 Aug 2022 16:38

Hi!

I am new to DbForge and have purchased the annual subscription. Currently I connect to the Mysql server from a PHP TUNNEL but I notice that the connection and results are very slow. I would like to know what is the best and fastest connection that I can have with the server to have more speed.

Thank you all!

michabbb
Posts: 217
Joined: Mon 21 Nov 2011 02:35
Location: DE
Contact:

Re: What is the best way to connect (The fastest)

Post by michabbb » Tue 30 Aug 2022 15:36

hi,

of course, using PHP as a proxy is the worst type of connection you can choose ;)
every request goes to the webserver, the webserver talks to the PHP-daemon, and the
PHP process finally talks to MySQL and everything has to go back the same way, bad, very bad ;)

the PHP tunnel is something you should use when there is no other option left.
the best option, of course, is a direct connection, without anything between.
but because of safety, MySQL never should be open to the outside world.
so the logical solution is, to connect via SSH directly to your server and from there to 127.0.0.1 to your MySQL, this connection is as fast as using a direct connection, you won´t notice any difference ;)

cheers,
micha

coolapps
Posts: 3
Joined: Mon 22 Aug 2022 14:15

Re: What is the best way to connect (The fastest)

Post by coolapps » Wed 31 Aug 2022 13:30

Thank you very much Micha for your answer!

I'm already setting up an SSH connection!

Post Reply