-1

I Need to take single "nametable" from "MYSQLDATABASE1" and take it by all privilege & relation then import it into other "MYSQLDATABASE2"

sticky bit
  • 36,626
  • 12
  • 31
  • 42

1 Answers1

0

This will dump the whole table from the specified database 'MYSQLDATABASE1'

mysqldump -u username -p MYSQLDATABASE1 table_name > nametable.sql

This will load the dumped table into the required database 'MYSQLDATABASE2'

mysql -u username -p MYSQLDATABASE2 < nametable.sql

regarding the privileges & relationship i think this part will require you to manually lookup for them and do it manually table by table

Mina Samy
  • 96
  • 1
  • 5