2

Are there any benefits to installing mysql from source, or should I just use apt-get?

0

3 Answers 3

7

From source you'll get the binaries compiled to your architecture, from apt-get it will be compiled to i386 or ia64. There's a performance boost on that (at least in i386 packages).

And from source you can tweak the installation, removing uneeded features.

The drawback is the integration on the system, if you compile it and don't do anything more and later you install a package which depends on mysql your system will end with two mysql daemons installed, as apt doesn't know that there's a mysql installed already.

You can use apt-build. Apt-build downloads the sources of the debian package and compiles it, adding to the installed package lists. And you can also mantain updates as apt-get does.

7

use apt-get. It will make future updates much easier.

2

As theist stated, installing from source will give you the freedom to enable certain features.

On the list of typical comiple options are several storage engines listed. If you know, which one to use, don't compile the other ones. Candidates to disable are probably berkley-db and csv. But there might be use cases, when all you want is MySQL writing to CSV tables...

If you expect to have tables with more than 4G, you will probably need to compile your own, too.

Also, if you don't need to support SSL (e.g. if mysql is listenling on the local adress only), you don't have to install it.

To sum it up: It is not just about the compiler optimizations, but more about the features of your use case. If they do not include something that the prebuild package is missing, go with the apt-get.

Not the answer you're looking for? Browse other questions tagged .