How to import mysql db, if you don't have permissions to run 'use charset utf8'

In case if you don't have permissions to run use charset utf8

1. Open database dump sql file and add such lines on top of it.

SET NAMES utf8;
SET CHARACTER_SET utf8;

Goto mysql command tool, run it and log in.
type use database name_of_db Enter.
type \. path_to_the_dump_file Enter.

May 28, 2018