I solve this issue myself, the problem is to allow remote access to db. Find the mysql folder, then my.conf , then edit the value 127.0.0.1 to 0.0.0.0 which means allow remote access and follow the step from these link How to Allow MySQL Remote Access in Ubuntu Server