how to restore a sql file in mysql code example Example: mysql restore database mysql -u [user] -p [database_name] < [filename].sql