1

Today, I have problem on my openshift account. Mysql on my openshift account gone rogue, i cant connect to MySql by php script and even from SSH.

Already try to restart the gear, but it's not working.When i try to SSH to the gear.And when i type MYSQL. It have this error:

ERROR 2003 (HY000): Can't connect to MySQL server

Can someone show me how to fix this issue ? thanks

Davin Kho
  • 13
  • 3
  • Read this: [*Can't connect to \[local\] MySQL server*](http://dev.mysql.com/doc/refman/5.1/en/can-not-connect-to-server.html) – Ravinder Reddy Jun 17 '14 at 04:31

1 Answers1

0

My recommendation is to do the following from the command line:

1) rhc app-force-stop {your app name}

2) rhc app-start {your app name}

Seems like something is stuck and you need a "hard" restart

TheSteve0
  • 3,530
  • 1
  • 19
  • 25