When I upgraded MySQL, the PHP linked database reported an error. After checking the data, I found that the MySQL version was changed, which was inconsistent with the previously compiled version, so the error was reported. The solution was to recompile mySQLND, my MySQL and PHP installed by YUM were very simple.
killall php-fpm
yum remove php70w-mysql
yum install php70w-mysqlnd
After installation, just restart PHP-FPM!
Read More:
- php mysqli_ connect_ Error () and mysqli_ connect_ The difference of errno() function
- PHP under linux uses pdo-dblib to connect to mssql to report an error solution. Error message: SQLSTATE[01002] Adaptive Server connection failed (severity 9)
- Error warning: mysqli_ error() expects parameter 1 to be mysqli, null given。 Any idea why?
- PHP message: PHP Fatal error: Uncaught PDOException: SQLSTATE[08004] [1040] Too many connections
- DB-Lib error message 20002, severity 9
- gvim: GConf-WARNING **: Client failed to connect to the D-BUS daemon
- Istio Error 503 upstream connect error or disconnect/reset before headers. reset reason: connect
- The MySQL service suddenly hangs up with the error message can’t connect to MySQL server on ‘localhost’ (10061)
- Complex warning: casting complex values to real discards the imaginary part
- PHP message:filesize(): stat failed for Error
- geom_ Warning message: sign function’s own error
- Chef encountered an error attempting to create the client
- A yellow warning appears on the pagecontroller page in PHP! ! ! !
- [solution] warning: this statement may fall through [- wimplicit fallthrough]) encountered during GCC compilation
- An error keyerror255 was reported when pymysql connect to MySQL
- C ා connect mysql: fatal error encountered during command execution solution
- After Nacos started, the client worker log was printed all the time
- [How to Solve]Warning: connect.static is not a function
- error: \*1035 connect() failed (111: Connection refused) while connecting to upstream, client…..
- Mongodb encountered an error: connect econnreused 127.0.0.1:27017