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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -