Which MySQL InnoDb files to move when transfering to a new server?2019 Community Moderator ElectionMove MySQL database to a new serverWhich MySQL data type to use for storing boolean valuesHost 'xxx.xx.xxx.xxx' is not allowed to connect to this MySQL serverCreate new user in MySQL and give it full access to one databaseMySQL table charset issues when moving serversHow to import an SQL file using the command line in MySQL?Migrate old mySQL/RH to new mySQL/UbuntuTransfering mysql data from wamp enviroment to centOSNew MySQL Server slower than the oldRestore the mySQL database from files - Windows serverWhat is the best way of moving a 150GB MySQL Server to a new Server in the same datacenter?

Would those living in a "perfect society" not understand satire

Volume of hyperbola revolved about the y -axis

Insult for someone who "doesn't know anything"

How do I increase the number of TTY consoles?

Converting from "matrix" data into "coordinate" data

How do we create new idioms and use them in a novel?

Rationale to prefer local variables over instance variables?

Trocar background-image com delay via jQuery

Is there a way to make cleveref distinguish two environments with the same counter?

ESPP--any reason not to go all in?

Use Mercury as quenching liquid for swords?

Is this Paypal Github SDK reference really a dangerous site?

Difference between `nmap local-IP-address` and `nmap localhost`

Is it possible to clone a polymorphic object without manually adding overridden clone method into each derived class in C++?

How to install round brake pads

Too soon for a plot twist?

What do you call someone who likes to pick fights?

Writing text next to a table

Did Amazon pay $0 in taxes last year?

How to educate team mate to take screenshots for bugs with out unwanted stuff

Are these two graphs isomorphic? Why/Why not?

Is there stress on two letters on the word стоят

Is it appropriate to ask a former professor to order a book for me through an inter-library loan?

Finding the minimum value of a function without using Calculus



Which MySQL InnoDb files to move when transfering to a new server?



2019 Community Moderator ElectionMove MySQL database to a new serverWhich MySQL data type to use for storing boolean valuesHost 'xxx.xx.xxx.xxx' is not allowed to connect to this MySQL serverCreate new user in MySQL and give it full access to one databaseMySQL table charset issues when moving serversHow to import an SQL file using the command line in MySQL?Migrate old mySQL/RH to new mySQL/UbuntuTransfering mysql data from wamp enviroment to centOSNew MySQL Server slower than the oldRestore the mySQL database from files - Windows serverWhat is the best way of moving a 150GB MySQL Server to a new Server in the same datacenter?










0















I'm moving a 150GB MySQL Server to a brand new machine on the same network, both of them run Windows Server 2012.



The new server runs MySQL 8.0.15 while the old one runs on MySQL 5.7.14



All of my tables are in the 'roat' folder.



This is my rough plan



  1. Shut down both MySQL Servers

  2. Start a Filezilla transfer, moving all the MySQL files over

  3. Start the new MySQL Server.

Now my question is, which of these files below will I need to transfer to the new server in order for the new server to work and startup?



edit: I am not interested in using mysqldump since it's at least 10x slower with 150GB of data.



enter image description here










share|improve this question



















  • 1





    Possible duplicate of Move MySQL database to a new server

    – Nico Haase
    Mar 6 at 11:24











  • I am not using 'mysqldump' to transfer the database, since it'd be super slow (up to 20 hours total, while moving the raw 150GB of files over would be max 1 hour)

    – Phillip J
    Mar 6 at 11:26











  • @PhillipJ that's an inherent problem of MySQL and dumps. If you have the Enterprise edition, either bought or compiled from source, you can take real backups and restore them on the new server. Check Moving or Copying InnoDB Tables for other options. Copying/moving files is possible but requires care - you can't just copy data files while transactions are still active. You'd end up with partial or corrupted data

    – Panagiotis Kanavos
    Mar 6 at 11:34












  • @PanagiotisKanavos I'm okay with an hour or 2 downtime (shutting down the mysql server), would that not be possible?

    – Phillip J
    Mar 6 at 11:37











  • One option is to use the transferable tablespaces feature, although that requires that the tables were created with the innodb_file_per_table option. In that case you need to flush the tables and copy the files. Another option is described as a "cold backup" but in reality it means that you shut down the server and copy the files over

    – Panagiotis Kanavos
    Mar 6 at 11:37















0















I'm moving a 150GB MySQL Server to a brand new machine on the same network, both of them run Windows Server 2012.



The new server runs MySQL 8.0.15 while the old one runs on MySQL 5.7.14



All of my tables are in the 'roat' folder.



This is my rough plan



  1. Shut down both MySQL Servers

  2. Start a Filezilla transfer, moving all the MySQL files over

  3. Start the new MySQL Server.

Now my question is, which of these files below will I need to transfer to the new server in order for the new server to work and startup?



edit: I am not interested in using mysqldump since it's at least 10x slower with 150GB of data.



enter image description here










share|improve this question



















  • 1





    Possible duplicate of Move MySQL database to a new server

    – Nico Haase
    Mar 6 at 11:24











  • I am not using 'mysqldump' to transfer the database, since it'd be super slow (up to 20 hours total, while moving the raw 150GB of files over would be max 1 hour)

    – Phillip J
    Mar 6 at 11:26











  • @PhillipJ that's an inherent problem of MySQL and dumps. If you have the Enterprise edition, either bought or compiled from source, you can take real backups and restore them on the new server. Check Moving or Copying InnoDB Tables for other options. Copying/moving files is possible but requires care - you can't just copy data files while transactions are still active. You'd end up with partial or corrupted data

    – Panagiotis Kanavos
    Mar 6 at 11:34












  • @PanagiotisKanavos I'm okay with an hour or 2 downtime (shutting down the mysql server), would that not be possible?

    – Phillip J
    Mar 6 at 11:37











  • One option is to use the transferable tablespaces feature, although that requires that the tables were created with the innodb_file_per_table option. In that case you need to flush the tables and copy the files. Another option is described as a "cold backup" but in reality it means that you shut down the server and copy the files over

    – Panagiotis Kanavos
    Mar 6 at 11:37













0












0








0








I'm moving a 150GB MySQL Server to a brand new machine on the same network, both of them run Windows Server 2012.



The new server runs MySQL 8.0.15 while the old one runs on MySQL 5.7.14



All of my tables are in the 'roat' folder.



This is my rough plan



  1. Shut down both MySQL Servers

  2. Start a Filezilla transfer, moving all the MySQL files over

  3. Start the new MySQL Server.

Now my question is, which of these files below will I need to transfer to the new server in order for the new server to work and startup?



edit: I am not interested in using mysqldump since it's at least 10x slower with 150GB of data.



enter image description here










share|improve this question
















I'm moving a 150GB MySQL Server to a brand new machine on the same network, both of them run Windows Server 2012.



The new server runs MySQL 8.0.15 while the old one runs on MySQL 5.7.14



All of my tables are in the 'roat' folder.



This is my rough plan



  1. Shut down both MySQL Servers

  2. Start a Filezilla transfer, moving all the MySQL files over

  3. Start the new MySQL Server.

Now my question is, which of these files below will I need to transfer to the new server in order for the new server to work and startup?



edit: I am not interested in using mysqldump since it's at least 10x slower with 150GB of data.



enter image description here







mysql






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 6 at 11:29







Phillip J

















asked Mar 6 at 11:21









Phillip JPhillip J

245




245







  • 1





    Possible duplicate of Move MySQL database to a new server

    – Nico Haase
    Mar 6 at 11:24











  • I am not using 'mysqldump' to transfer the database, since it'd be super slow (up to 20 hours total, while moving the raw 150GB of files over would be max 1 hour)

    – Phillip J
    Mar 6 at 11:26











  • @PhillipJ that's an inherent problem of MySQL and dumps. If you have the Enterprise edition, either bought or compiled from source, you can take real backups and restore them on the new server. Check Moving or Copying InnoDB Tables for other options. Copying/moving files is possible but requires care - you can't just copy data files while transactions are still active. You'd end up with partial or corrupted data

    – Panagiotis Kanavos
    Mar 6 at 11:34












  • @PanagiotisKanavos I'm okay with an hour or 2 downtime (shutting down the mysql server), would that not be possible?

    – Phillip J
    Mar 6 at 11:37











  • One option is to use the transferable tablespaces feature, although that requires that the tables were created with the innodb_file_per_table option. In that case you need to flush the tables and copy the files. Another option is described as a "cold backup" but in reality it means that you shut down the server and copy the files over

    – Panagiotis Kanavos
    Mar 6 at 11:37












  • 1





    Possible duplicate of Move MySQL database to a new server

    – Nico Haase
    Mar 6 at 11:24











  • I am not using 'mysqldump' to transfer the database, since it'd be super slow (up to 20 hours total, while moving the raw 150GB of files over would be max 1 hour)

    – Phillip J
    Mar 6 at 11:26











  • @PhillipJ that's an inherent problem of MySQL and dumps. If you have the Enterprise edition, either bought or compiled from source, you can take real backups and restore them on the new server. Check Moving or Copying InnoDB Tables for other options. Copying/moving files is possible but requires care - you can't just copy data files while transactions are still active. You'd end up with partial or corrupted data

    – Panagiotis Kanavos
    Mar 6 at 11:34












  • @PanagiotisKanavos I'm okay with an hour or 2 downtime (shutting down the mysql server), would that not be possible?

    – Phillip J
    Mar 6 at 11:37











  • One option is to use the transferable tablespaces feature, although that requires that the tables were created with the innodb_file_per_table option. In that case you need to flush the tables and copy the files. Another option is described as a "cold backup" but in reality it means that you shut down the server and copy the files over

    – Panagiotis Kanavos
    Mar 6 at 11:37







1




1





Possible duplicate of Move MySQL database to a new server

– Nico Haase
Mar 6 at 11:24





Possible duplicate of Move MySQL database to a new server

– Nico Haase
Mar 6 at 11:24













I am not using 'mysqldump' to transfer the database, since it'd be super slow (up to 20 hours total, while moving the raw 150GB of files over would be max 1 hour)

– Phillip J
Mar 6 at 11:26





I am not using 'mysqldump' to transfer the database, since it'd be super slow (up to 20 hours total, while moving the raw 150GB of files over would be max 1 hour)

– Phillip J
Mar 6 at 11:26













@PhillipJ that's an inherent problem of MySQL and dumps. If you have the Enterprise edition, either bought or compiled from source, you can take real backups and restore them on the new server. Check Moving or Copying InnoDB Tables for other options. Copying/moving files is possible but requires care - you can't just copy data files while transactions are still active. You'd end up with partial or corrupted data

– Panagiotis Kanavos
Mar 6 at 11:34






@PhillipJ that's an inherent problem of MySQL and dumps. If you have the Enterprise edition, either bought or compiled from source, you can take real backups and restore them on the new server. Check Moving or Copying InnoDB Tables for other options. Copying/moving files is possible but requires care - you can't just copy data files while transactions are still active. You'd end up with partial or corrupted data

– Panagiotis Kanavos
Mar 6 at 11:34














@PanagiotisKanavos I'm okay with an hour or 2 downtime (shutting down the mysql server), would that not be possible?

– Phillip J
Mar 6 at 11:37





@PanagiotisKanavos I'm okay with an hour or 2 downtime (shutting down the mysql server), would that not be possible?

– Phillip J
Mar 6 at 11:37













One option is to use the transferable tablespaces feature, although that requires that the tables were created with the innodb_file_per_table option. In that case you need to flush the tables and copy the files. Another option is described as a "cold backup" but in reality it means that you shut down the server and copy the files over

– Panagiotis Kanavos
Mar 6 at 11:37





One option is to use the transferable tablespaces feature, although that requires that the tables were created with the innodb_file_per_table option. In that case you need to flush the tables and copy the files. Another option is described as a "cold backup" but in reality it means that you shut down the server and copy the files over

– Panagiotis Kanavos
Mar 6 at 11:37












1 Answer
1






active

oldest

votes


















0














if you're moving a whole database schema, and you're willing to stop the first database (so it's consistent when being transfered)
Here is step



  • Stop the database (or lock it)

  • Go to the directory where the mysql data files are.

  • Transfer over the folder (and its contents) over to the new server's mysql data directory

  • Start back up the database

  • On the new server, issue a 'create database' command.'

  • Re-create the users & grant permissions.

But you can face issue if your my.cnf both server is different and also you have to check other configuration changes(like 8 support Roles,caching_sha2_password plugin in that,also does not support query cache )






share|improve this answer






















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55021875%2fwhich-mysql-innodb-files-to-move-when-transfering-to-a-new-server%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    if you're moving a whole database schema, and you're willing to stop the first database (so it's consistent when being transfered)
    Here is step



    • Stop the database (or lock it)

    • Go to the directory where the mysql data files are.

    • Transfer over the folder (and its contents) over to the new server's mysql data directory

    • Start back up the database

    • On the new server, issue a 'create database' command.'

    • Re-create the users & grant permissions.

    But you can face issue if your my.cnf both server is different and also you have to check other configuration changes(like 8 support Roles,caching_sha2_password plugin in that,also does not support query cache )






    share|improve this answer



























      0














      if you're moving a whole database schema, and you're willing to stop the first database (so it's consistent when being transfered)
      Here is step



      • Stop the database (or lock it)

      • Go to the directory where the mysql data files are.

      • Transfer over the folder (and its contents) over to the new server's mysql data directory

      • Start back up the database

      • On the new server, issue a 'create database' command.'

      • Re-create the users & grant permissions.

      But you can face issue if your my.cnf both server is different and also you have to check other configuration changes(like 8 support Roles,caching_sha2_password plugin in that,also does not support query cache )






      share|improve this answer

























        0












        0








        0







        if you're moving a whole database schema, and you're willing to stop the first database (so it's consistent when being transfered)
        Here is step



        • Stop the database (or lock it)

        • Go to the directory where the mysql data files are.

        • Transfer over the folder (and its contents) over to the new server's mysql data directory

        • Start back up the database

        • On the new server, issue a 'create database' command.'

        • Re-create the users & grant permissions.

        But you can face issue if your my.cnf both server is different and also you have to check other configuration changes(like 8 support Roles,caching_sha2_password plugin in that,also does not support query cache )






        share|improve this answer













        if you're moving a whole database schema, and you're willing to stop the first database (so it's consistent when being transfered)
        Here is step



        • Stop the database (or lock it)

        • Go to the directory where the mysql data files are.

        • Transfer over the folder (and its contents) over to the new server's mysql data directory

        • Start back up the database

        • On the new server, issue a 'create database' command.'

        • Re-create the users & grant permissions.

        But you can face issue if your my.cnf both server is different and also you have to check other configuration changes(like 8 support Roles,caching_sha2_password plugin in that,also does not support query cache )







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 6 at 13:33









        vishalvishal

        268




        268





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55021875%2fwhich-mysql-innodb-files-to-move-when-transfering-to-a-new-server%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

            Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

            Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved