Fatal error: Uncaught Error: Call to undefined function mysql_connect()
-
Hi
I have a Windows box:
Apache 2.4 (runs perfect, have other sites on it)
PHP7 (as per your download instructions), also working with the info script
MySQL (installed and working)
Wordpress in the directoryRun https://domain.com/index.php i get the setup, however when it then tries to connect to the database i get a 500 error and the below in the Apache error log
Fatal error: Uncaught Error: Call to undefined function mysql_connect()
This appears to be as PHP7 no longer has anyway of connecting to a SQL database in it, so why are you telling us to use it?
Whats the fix on a Windows server?
Ive been at this 6 hours, right at your “Famous 5-Minute Installation” which i am guessing was a joke based on the fact you recommended PHP7.2 which has no way of connecting to ANY SQL database!
What do i change / add to PHP to get this to work?
ManyThanks
- The topic ‘Fatal error: Uncaught Error: Call to undefined function mysql_connect()’ is closed to new replies.