Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

import mysql cli

# export
mysqldump -u NAMAUSER -p NAMADATABASE > dbexport.sql
mysqldump -u NAMAUSER -p -h 172.23.0.3 NAMADATABASE > dbexport.sql # with host

# import
mysql -u NAMAUSER -p NAMADATABASE < dbexport.sql
mysql -u NAMAUSER -p -h 172.23.0.3 NAMADATABASE < dbexport.sql # with host
 
PREVIOUS NEXT
Tagged: #import #mysql #cli
ADD COMMENT
Topic
Name
6+6 =