mysql - MariaDB import some table from full database dump file -
how can import table full database dump file. example have database dump file include "categories,members,articles,prices,items". want import "categories,members" dump file. possible , how can this?
code not working
mysql -u root -proot mydatabase categories members < /data/fulldumpfile.dmp
no. cannot specify table on mysql commandline tool.
does dump file have create database mydatabase? drop database mydatabase? use mydatabase? depending on there, saying mydatabase on mysql may not take effect.
if see use, do
mysql -u root -proot someotherdb < /... then
rename table someotherdb.categories desireddb.categories, someotherdb.members desireddb.members; drop database someotherdb; otherwise, edit dmp file.
(i don't think mariadb vs mysql matters question.)
Comments
Post a Comment