how to take backup of sql mysql and restore it in a new code example Example: mysql dump restore mysql -u [user] -p [database_name] < [filename].sql