Answer the question
In order to leave comments, you need to log in
How to fix php_pdo_mysql error?
I add this line:
$pdo->setAttribute(PDO::MYSQL_ATTR_MAX_BUFFER_SIZE, 1024*1024*50);
Fatal error: Undefined class constant 'MYSQL_ATTR_MAX_BUFFER_SIZE' in /var/.... on line 11
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/php_pdo_mysql.dll' - /usr/lib/php/20131226/php_pdo_mysql.dll: cannot open shared object file: No such file or directory in Unknown on line 0
Answer the question
In order to leave comments, you need to log in
Apparently, you do not have the php pdo_mysql module installed. Installed on Ubuntu via apt-get install php5-mysql and apt-get install pdo
- mysql -linu.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question