Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql dump database command line linux

mysqldump -u<user_name> -p<user_password> <database_name> > <file_name>.sql
Comment

mysql dump mysql db cli

#note by specifying -p flag without a password it'll prompt you for pass

DUMP:
mysqldump -u username -p dbname --lock-tables=false > filename.sql

Import:
mysql -u username -p dbname < filename.sql

Import external:
mysql -h host -u username -p dbname < filename.sql 
Comment

database dump mysql command

mysqldump -u username -p dbname > filename.sql
Comment

database dump mysql command

mysql -u username -p dbname < filename.sql
Comment

database dump mysql command

mysqldump -h <hostname> -u <username> -p <database_name> > file-dump.sql
Comment

import mysql dump database command line linux

mysql -u<user_name> -puser_password> <database_name>
source /path/db.sql
Comment

PREVIOUS NEXT
Code Example
Sql :: how to update date add hours in postgresql 
Sql :: CREATE DATABASE db; SyntaxError: Unexpected identifier 
Sql :: find last instance of character in string mysql 
Sql :: postgres delete database 
Sql :: install mysql server linux 
Sql :: sql server cast date dd/mm/yyyy 
Sql :: how to update an attribute in MySQL 
Sql :: how to get current date in mysql 
Sql :: import mysql dump command line windows 
Sql :: cannot pip install mysqlclient 
Sql :: raw query must include primary key 
Sql :: drop db syntax 
Sql :: influxdb export to csv 
Sql :: sql server reset auto increment 
Sql :: set username and password for postgresql database 
Sql :: set statiscis on in ssms 
Sql :: STOP message of how many rows affected sql 
Sql :: mysql id of inserted row 
Sql :: error code 1292 mysql workbench 
Sql :: oracle list data files 
Sql :: oracle list index on table 
Sql :: mysql drop column 
Sql :: mysql select for update ejemplo 
Sql :: oracle list dates between 
Sql :: how to insert into existing database postgresql sqlalchemy python 
Sql :: mysqldump password 
Sql :: select from array in psql 
Sql :: reset sql auto increment 
Sql :: sqlite check if row exists 
Sql :: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =