Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is a portable version of MySQL for Linux available?

Is a portable version of MySQL for Linux available?

like image 721
Rajan Avatar asked Oct 18 '10 13:10

Rajan


People also ask

Is MySQL available for Linux?

Linux. The easiest way to install MySQL is to use the MySQL repositories: For Yum-based Linux distributions like Oracle Linux, Red Hat Enterprise Linux, and Fedora, follow the instructions in A Quick Guide to Using the MySQL Yum Repository.

Is there a 64 bit version of MySQL?

MySQL is available for Microsoft Windows, for both 32-bit and 64-bit versions.


2 Answers

You don't need to "install" mysql. Its binaries will run from any directory (given appropriate search paths etc), and its configuration can be specified entirely on the command-line, if necessary, bypassing the likes of /etc/my.cnf, or by specifying an alternative config file with arbitrary path.

Some engines can work with a readonly data directory (MyISAM, Archive), others may require a read/write data directory (Innodb) but that could be a temporary area or ramdisc.

There's nothing "un-portable" about MySQL.

like image 115
MarkR Avatar answered Oct 05 '22 21:10

MarkR


To have a Portable Version of MySQL in linux, you can compile it to a Generic location

./configure --prefix=/myworkspace/installs/mysql --exec-prefix=/myworkspace/installs/mysql 

Then usual

make
make install

this will install mysql on /myworkspace/installs/mysql. Then you can zip the whole mysql folder and can take it anywhere except you can run it from the same directory structure you have installed. Compiling mysql requires some dependencies, check it out here http://dev.mysql.com/doc/refman/5.6/en/source-installation.html . If you install these dependencies also in /myworkspace/installs/mysqldepends/ , then your mysql is totally portable.

like image 33
Manikandaraj Srinivasan Avatar answered Oct 05 '22 21:10

Manikandaraj Srinivasan