简体   繁体   中英

Install MySQL Automatically on WIN, Linux, macOS

I want to use MySQL for an electron app in production and thus, if the client machine doesn't has MySQL already installed on it, then the app will not be able to function. So, is there any way to execute a auto-install MySQL script that installs MySQL on the client machine, even if its not already installed.

Since the app has to be cross-platform, so I am looking for a standard or minimum effort procedure (to speed up the process) to achieve the above, during first-time-app-startup on Windows7+, Ubuntu 14+ and macOS.

I found the following ways to auto-install:

  1. Windows : Link

  2. Linux & macOS: Create a bash script that runs before first-time-startup of the app. (Although, it will check whether MySQL instance is already present on the machine or not)

Looking for a better option than the above mentioned ones.

You may wish to consider the BitNami MySQL distribution; I have always used their VMs when I went after their products, but stand-alone installers are offered for most platforms (including Linux).

(Edit: It seems that the installer for MySQL is offered only for Linux x64)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM