How to Install Multiple MySQL Servers on a Windows Machine - MySQL DBA Tutorial

How to Install Multiple MySQL Servers on Windows Machine


demo explains the limitations that we can't install the MySQL multiple Servers on same machine by using MySQL Installer. Below are the steps you have to perform to install another MySQL server on windows machine on which you already have installed MySQL.


  1. Create a new folder on C drive, let's say MYSQLDEV
  2. Copy all the folders from c:\programfile\MySQL\ MySQL Server XX to MYSQLDEV
  3. Search for my.ini in %PROGRAMDATA%\MySQL and copy to MYSQLDEV and also copy Data directory
  4. Change the port for [client] and [mysqlid] in mysqldev.ini file, I have updated to 3307
  5. 5Change the basedir and datadir location to new location
  6. Execute mysqld --install MYSQLDEV --defaults-file="c:/MYSQLDEV/mysqldev.ini"
  7. Start the services net start MYSQLDEV
  8. Connect to MySQL mysql -u root --Port=3307
  9. Run show variables where variable_name in ('hostname','port');
  10. Change the root password if you need to for newly installed MySQL service by using     ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';


How to install multiple MySQL Servers on single Windows Machine

20 comments:

  1. hi, how to solve the error after run the net start MYSQLQA.
    The error is:
    The service did not report an error. More help is available by typing NET HELPMSG 3534.

    ReplyDelete
    Replies
    1. Your article and tips are incredibly interesting, are helping me a lot. It's very informative. Thanks for the detailed info on this topic. It’s hard to find nowadays to know about the basics but you did it so much well. I would love to see more about FMWhatsapp 2022. Keep sharing and updated. Also share more posts with us. Thank you.

      Delete
    2. Your post is helping me a lot. Its really nice and epic. Thanks a lot for the useful info on this topic. You did it so much well. I love to see more about GBWhatsApp 2022. Keep sharing and updating. Also share more posts with us. Thank you.

      Delete
  2. It was wondering if I could use this write-up on my other website, I will link it back to your website though.Great Thanks. unmetered dedicated servers

    ReplyDelete
  3. hi, how to solve the error after run the net start MYSQLQA.
    The error is:
    The service did not report an error. More help is available by typing NET HELPMSG 3534.

    ReplyDelete
  4. Got this error. instal/remove of the Service denied!
    when running this command
    mysqld --install MYSQLDEV --defaults-file="c:/MYSQLDEV/mysqldev.ini"

    please help

    ReplyDelete
    Replies
    1. open command with admin and change directory to bin folder and do these command again

      Delete
  5. This comment has been removed by the author.

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. That setting makes it easy for me to use multiple nicks to login yo whatsapp, gb whatsapp, whatsapp plus,.... on YoWAPlus home page

    ReplyDelete
  8. if you are in search of best modified version of Instagram to optimize and customize reels with better features then check this out instagold

    ReplyDelete

  9. Installing multiple MySQL servers on a Windows machine can be useful for various purposes such as testing, development, or running different versions of MySQL concurrently. Ensure that each MySQL Server instance uses a unique port number to avoid conflicts.
    Allocate sufficient gbwhatsapfree  resources (CPU, memory, disk space) for each MySQL Server instance to ensure optimal performance.
    Be mindful of potential security implications when running multiple MySQL Server instances on the same machine.

    ReplyDelete
  10. Click the Following Website and step into the realm of luxury messaging with Gold WhatsApp. Experience the opulence of exclusive golden themes, premium customization options, and unparalleled elegance in every chat. Elevate your communication game with Gold WhatsApp today!

    ReplyDelete
  11. Looking to give your phone a new look? Must download mb whatsapp iphone today!

    ReplyDelete
  12. Chat GPT App Login, an AI chatbot by OpenAI, excels at conversation. It can answer questions, create stories, and even translate languages, all in a natural and engaging way. While still under development, it offers a glimpse into the future of AI communication.

    ReplyDelete