📜  php mysqldump 终端 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:30.640000             🧑  作者: Mango

代码示例1
# Syntax
mysqldump -u [username] -p [database-to-dump] > [database-to-receive]

# Pipe it! Exporting DB from external host
mysqldump -u [username] -P [port] -h [host] [database-to-dump] | mysql -u root -h 127.0.0.1 [database-to-receive]

# Limit the export/dump to a sepcific table by typing its name after the DB