MagmaLair
MagmaLair

Reputation: 11

MAMP is giving a blank screen, Not loading mysql

Firstly, I have seen other questions like this but not quite the same. I am new to php and am only using it to install Wordpress.org.

The issue is that my website is coming up blank with with it failing to load php_mysql.dll even though the MySQL Server indicator is green. Here is the errorlog from phperror:

[08-Aug-2017 00:57:23 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\MAMP\bin\php\php7.1.5\ext\php_mysql.dll' - The specified module could not be found.
 in Unknown on line 0
[08-Aug-2017 00:57:35 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\MAMP\bin\php\php7.1.5\ext\php_mysql.dll' - The specified module could not be found.
 in Unknown on line 0

I read that it may have to do with formatting and I know enough about php to go through files and check for errors but besides php_mysql I have no clue as to where to start looking. Not sure if I have given enough information, but I hope it's enough.

Update: Here is coding from my configuration file -

Extentions:

extension=php_bz2.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_mbstring.dll
extension=php_exif.dll
extension=php_mysqli.dll
extension=php_pdo_sqlite.dll 
extension=php_sqlite3.dll
extension=php_curl.dll
extension=php_openssl.dll
extension=php_imagick.dll

[MySQL]:

mysql.allow_persistent = On
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = 60
mysql.trace_mode = Off

Upvotes: 1

Views: 681

Answers (1)

Difster
Difster

Reputation: 3260

The php_mysql extension was depreciated and removed completely from PHP 7. You should remove the extension from your configuration so it doesn't attempt to load.

Instead of using mysql, you'll want to use PDO or MySQLi

Upvotes: 3

Related Questions