Created
June 27, 2016 02:06
-
-
Save chinmayrajyaguru/18696eeafdb2a35e916cb738f595292a to your computer and use it in GitHub Desktop.
Import database from cPanel to MySQL through command line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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