Search
 
SCRIPT & CODE EXAMPLE
 

SQL

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

PREVIOUS NEXT
Code Example
Sql :: reset auto increment in sql 
Sql :: ms sql how to see active job current run time 
Sql :: having count greater than 1 mysql 
Sql :: Erreur SQL sur la requête Index column size too large. The maximum column size is 767 bytes. 
Sql :: mysql set root password 
Sql :: mysql create database charset utf8mb4 
Sql :: psql restore from tar 
Sql :: mysql show foreign keys 
Sql :: psql is not recognized 
Sql :: dao function to check if database contains value 
Sql :: installing mysql on fedora 
Sql :: show per page table in xampp 
Sql :: sql remove first character from string 
Sql :: oracle scan source ddl 
Sql :: set boolean flasksql 
Sql :: postgresql division count return 0 
Sql :: oracle character index 
Sql :: sql server roles and users 
Sql :: postgres get database encoding 
Sql :: change month to name in sql server 
Sql :: last 6 months postgresql 
Sql :: how to get weekday from old date in sql 
Sql :: how to delete table in mysql 
Sql :: drop table if exists 
Sql :: mysql shell ERROR: Not connected. 
Sql :: oracle substring 
Sql :: sql create table with datetime automatically 
Sql :: Uncaught Error: Cannot use object of type mysqli_result as array 
Sql :: find difference in dates sql 
Sql :: fetch first 5 characters of the string in sql 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =