Import SQL-File to Table with MySQL from Command Line

1
2
alias pma='mysql -u [username] -p[password] -h [host]' # connect with localhost
pma [database] < ~/Downloads/db381516_2.sql # import sql-file into db
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.