R
R
RR2015-06-01 20:23:18
Yii
RR, 2015-06-01 20:23:18

Yii2 / Why does it take 1 second to open a MySQL connection?

Actually, for a long time such a thing, on the local (win 8.1, openserver 5.2.2) yii2 opens a connection to the database for a very long time. Moreover, the complexity of the code is not important, if a database is required - it takes about 1 second to connect.
k9ZG4ODp.png
Could this be just Windows brakes, or are some specific Yii2 / MySQL settings required?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rikcon, 2015-06-01
@romkaby

Are you connecting to the database on localhost or 127.0.0.1 ?
If by localhost then change to 127.0.0.1 and it will be much faster.
I saw that on localhost, in the database config, change localhost to 127.0.0.1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question