MySql, how can I export indexes from my development database to my production database?

前端 未结 6 741
南方客
南方客 2020-12-11 00:59

I\'ve been working on my development database and have tweaked its performance.

However, to my surprise I can\'t find a way to export the indexes to my production da

6条回答
  •  执笔经年
    2020-12-11 01:25

    you can use the following command to take a dump

    mysqldump -u [USERNAME] -p [DBNAME] | gzip > [/path_to_file/DBNAME].sql.gz
    

    and indexes will be copied automatically.

提交回复
热议问题