I found that only phpmyadmin can access the DB. But all other websites cannot reach mysql DB.
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = 'root';
$dbname = 'property';
The login is surely correct. But, the program cannot be run.
I copied the mysql/data folder to the new mysql. Or, do I need to import DB one by one through phpmyadmin?