I have a big sql database and its run in a "live" server. If any bug occurs I usually export the database manually from phpmyadmin ( view output text ) then I drop the localhost database and import the output dump and import the procedures as well. I want to make a PHP file to make this just one click. Could you help me how can I connect to the live server . export the database I want. After connect to my localhost drop the current export the previously made SQL file and import the current procedures?
Thank you Sorry for bad english, this is my first question.