Skip to content

Instantly share code, notes, and snippets.

@chinmayrajyaguru
Created June 27, 2016 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chinmayrajyaguru/18696eeafdb2a35e916cb738f595292a to your computer and use it in GitHub Desktop.
Save chinmayrajyaguru/18696eeafdb2a35e916cb738f595292a to your computer and use it in GitHub Desktop.
Import database from cPanel to MySQL through command line
CREATE DATABASE database-name DEFAULT CHARACTER SET utf8 COLLATE utf8_uni code_ci;
GRANT ALL ON database-name.* TO 'user-name'@'localhost' IDENTIFIED BY 'user-password';
use database-name;
source path/file.sql;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment