Connect to mysql on Main page.