# mysql broken, please help!

**URL:** https://forums.percona.com/t/mysql-broken-please-help/3976
**Category:** Other MySQL® Questions
**Created:** [January 4, 2015, 3:43am UTC](https://forums.percona.com/t/mysql-broken-please-help/3976 "2015-01-04T03:43:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dotpro](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@dotpro](https://forums.percona.com/u/dotpro)
#### Post date: [January 4, 2015, 3:43am UTC](https://forums.percona.com/t/mysql-broken-please-help/3976/1 "2015-01-04T03:43:58Z")

</div>

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  
[root@host2 /]# service mysql start  
Starting MySQL (Percona Server)… [OK]  
[root@host2 /]# service mysql status  
MySQL (Percona Server) running (18295) [OK]  
[root@host2 /]#  
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

---

<div class="post-metadata">

### Author: ![dotpro](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@dotpro](https://forums.percona.com/u/dotpro)
#### Post date: [January 4, 2015, 6:55am UTC](https://forums.percona.com/t/mysql-broken-please-help/3976/2 "2015-01-04T06:55:18Z")

</div>

nevermind, i just reloaded the server.

If you have any idea what happened, please do reply!

---

<div class="post-metadata">

### Author: ![jrivera](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/jrivera/32/13_2.png) [@jrivera](https://forums.percona.com/u/jrivera)
#### Post date: [January 6, 2015, 7:19am UTC](https://forums.percona.com/t/mysql-broken-please-help/3976/3 "2015-01-06T07:19:32Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Rick\_James](https://avatars.discourse-cdn.com/v4/letter/r/22d042/32.png) [@Rick\_James](https://forums.percona.com/u/Rick_James)
#### Post date: [February 4, 2015, 11:43pm UTC](https://forums.percona.com/t/mysql-broken-please-help/3976/4 "2015-02-04T23:43:13Z")

</div>

Don’t use the deprecated mysql\_\* API; switch to the mysqli\_\* API in PHP.
