A
A
aopil2020-08-17 12:14:04
ubuntu
aopil, 2020-08-17 12:14:04

How to fix php_pdo_mysql error?

I add this line:

$pdo->setAttribute(PDO::MYSQL_ATTR_MAX_BUFFER_SIZE, 1024*1024*50);


I am getting an error:
Fatal error:  Undefined class constant 'MYSQL_ATTR_MAX_BUFFER_SIZE' in /var/.... on line 11


Google suggests that you need to fix the php.ini file, uncommented the line: extension=php_pdo_mysql.dll, rebooted the server, now I get:

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


How to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Official account of the Timeweb team, 2020-08-17
@timeweb_team

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 question

Ask a Question

731 491 924 answers to any question