Is there any way to create compiled files for another OS? - mysql

Context: I have a machine in the cloud running mysql 5.7 in a virtualized Debian OS. I am actually using a MAC OS to development and I need to compile a shared object (.so) to this mysql instance.
Is there any way to compile in the MAC OS a binary for Debian?
The only solution I can think is to run a docker container with Debian, set the environment and compile inside it.

Related

want to connect to mysql from parallel desktop

I wanna connect to mysql database which is on my Mac from parallel desktop(windows 11) ,but I can't. How can I connect to Mac IP from my parallel?
(I tried to install mysql workbench on parallel but it says "your processor is not adequate). So, I had to install database on Mac.I also tried bridged wifi and using localhost but it can't find the database.
I have a partial solution for you. I modified the MySQL Workbench installation to run on Mac ARM. I also use USB Webserver to run a MySQL database on Windows ARM. MAMP and WAMP don't seem to run on Windows with Parallels.
I too am trying to figure out how to access a database running on Mac from C# Windows Apps on Windows. Have not had success yet.
You can get the install files for Workbench on my github page.
https://github.com/shadsluiter/MySQLWorkbenchM1MacParallels

Ejabberd source code Installation in windows 10

I want to know the procedure to install Ejabberd from source code in windows 10. In their documentation, the installation with source code is only given for the Linux based operating system. I am struggling to find any good documentation on the same.
I think the windows installer is, in fact, compiled and packaged in Linux or other operating system. Following this reasoning, there's a way to get your self-compiled ejabberd running in Windows:
Download and install the latest ejabberd binary package in your Windows server. See what Erlang/OTP version and what ejabberd version you have.
Now, go to a development machine where you know ejabberd can be compiled: GNU/Linux, BSD, maybe Mac.
Download the same Erlang/OTP version, and download the source code of the same ejabberd version
Compile ejabberd
Copy the resulting *.beam files from the development machine to the Windows server, overwriting the originally installed ones

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:
Windows : Link
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)

Launch Beyond Compare(Win) for Mercurial Merge(Linux) using XServer

I've beyondcompare licence for my windows machine and I can't use that licence for linux installation. I work on linux server via putty from my windows system.
I could launch linux visual merge tools like meld using X server. But I'm looking for a way to use X server/X11 to launch beyondcompare from my putty session. In short, I want to launch a windows application itself from the linux env over putty.
My last choice would be to pull changes to my windows machine and do a merge on windows; push it back. But it would be nice if I could launch beyondcompare from linux.
Any Ideas?
It isn't possible to launch a diff/merge in the Windows version of Beyond Compare from a Linux system via SSH. There are three possible workarounds:
Upgrade your license to a multi-platform license and use the Linux
version of Beyond Compare.
Run the Windows version of Beyond Compare on your Windows machine and access the files on the Linux machine using the SFTP support built into Beyond Compare Pro.
Install Mercurial on your Windows machine, then check out files and
diff/merge from there. See the Using Beyond Compare With Version
Control Systems article to configure BC as the
diff and merge tool for Mercurial on Windows.

XAMPP on iMac - will it adversely affect built in Apache, Perl, PHP

The issue of importance here is installing and using MySQL on my iMac. To my knowledge, OS X (currently running OS X 10.5.8) has the Apache web server, Perl and PHP already installed (I've verified that by experiment). It does not have MySQL installed however and I'd like to install it.
I stumbled upon a couple versions of the Apache, Perl, PHP, MySQL bundle known by various names such as MAMP, XAMP and XAMPP. XAMPP seems to be the best of the bunch, but that's somewhat irrelevant to the discussion. What I'd like to know is if I install, say XAMPP, will this affect the built-in Apache, Perl and PHP instances installed on the machine? I don't want to mess those up in any way (i.e. will installing XAMPP change those installations?). If it's a separate install, could there be conflicts of some sort between the built-in Apache and the one installed from XAMPP?
In case it isn't obvious, I know next to nothing about web servers or their configuration.
See earlier SO question: XAMPP or MAMP on Mac OS X 10.6.2 (Snow Leopard)
Read the docs: XAMPP - and Bitnami for that matter http://bitnami.org/stacks - don't change or impact current OS X installs of apache, php, etc.
XAMPP docs say that XAMPP "comes as a Mac OS X Installer package which contains all the necessary files and requires no dependencies."
Regarding BitNami, I'd like to mention that if the installer detects any software running in the default port (for instance if you have your own Apache server running in your system), it will asked you to select a different port for BitNami and it will configure the new server using that port. You don't need to manually configure it after the installation, it is automatically done.