Home Databases mySql How to import a generated mySql file '.sql' via the CLI (Command Line Interface)?
 
 
 

How to import a generated mySql file '.sql' via the CLI (Command Line Interface)?

PDF Print E-mail

Question: How to import a generated mySql file '.sql' via the CLI (Command Line Interface)?

 

Answer: 

  • Open a new Terminal Window if not already in Command Line
  • Type in the command below
    • Linux
      mysql -uusername -ppassword databasename < import.sql
    • MS Dos
      mysql -u username -p databasename < import.sql
+/-
+/- Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
Security Please input the anti-spam code that you can read in the image.
 

Go Daddy $7.49 .com Sale!