php - Using PDO with 2 databases Intermittent error SQLSTATE[HY000] [2005] Unknown MySQL server host -
most of time works fine. refresh screen once , works , sometime have wait few minutes. have gotten , tried on different pc , appears if not working on 1 computer not working where.
the program opens databases in same order each time , error has occurred on both first , second database.
i have not seen pattern.
i using godaddy.com shared hosting.
php version 5.2.17
pdo driver mysql, client library version 5.0.77
any advice appreciated.
if you're connecting via tcp sockets, due intermittent dns lookup failure. e.g. connection string uses 'mysql.example.com:3306', , whatever dns server(s) host configured use fails whatever reason.
Comments
Post a Comment