Not the answer you need?
Register and ask your own question!

mysql broken, please help!

dotprodotpro EntrantCurrent User Role Participant
Hello,

I spent last 6+ hours researching and now posting for some help as nothing in online discussions have helped...

This is a new dedicated server.
I see that mysql is running on the server
[[email protected] /]# service mysql start
Starting MySQL (Percona Server).. [ OK ]
[[email protected] /]# service mysql status
MySQL (Percona Server) running (18295) [ OK ]
[[email protected] /]#
However, no php applications can connect to it.
I am getting errors like:
Fatal error: Call to undefined function mysql_connect() in
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
it was working before until i updated apache config with php5.4.
PLEASE HELP.

thanks

Comments

  • dotprodotpro Entrant Current User Role Participant
    nevermind, i just reloaded the server.

    If you have any idea what happened, please do reply!
  • jriverajrivera Percona Support Engineer Percona Staff Role
    If you upgraded Apache and _might_ have upgraded PHP5 at the same time I guess you had to restart Apache to be able to complete the Apache upgrade process. Relevant error logs from the affected server might also give us some more hints.
  • Rick JamesRick James Contributor Current User Role Participant
    Don't use the deprecated mysql_* API; switch to the mysqli_* API in PHP.
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.