Skip to content

Unable to load dynamic library 'mysqli' #73

Discussion options

You must be logged in to vote

To fix this run this command.

php --ini

It will print the path to loaded configuration file and additional .ini files.
For example:

Configuration File (php.ini) Path: /usr/local/etc/php/7.4
Loaded Configuration File:         /usr/local/etc/php/7.4/php.ini
Scan for additional .ini files in: /usr/local/etc/php/7.4/conf.d
Additional .ini files parsed:      /usr/local/etc/php/7.4/conf.d/ext-opcache.ini

check these files, if they have a line extension=mysqli, please remove that line as both mysqli and mysqlnd extensions are compiled statically into php binary and do not need to be loaded using a ini file.

If you are not able to find any such line, remove the PHP 7.4 along with its configuratio…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by shivammathur
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants