i downloaded mysql-5.6.17-linux-glibc2.5-i686.tar.gz for Ubuntu 13.04 what next step to install it on ubuntu

Dani AI

Generated

Short primer: the archive named mysql-5.6.17-linux-glibc2.5-i686.tar.gz is a prebuilt Linux binary (glibc 2.5, i686 = 32‑bit), not source to run through ./configure && make. As pointed out, that explains why ’s compiler/cmake advice only applies to source builds and why ’s compile commands aren’t appropriate for this package. Check the running kernel/OS architecture with uname -m before proceeding (x86_64 vs i686). (dev.mysql.com)

For most Ubuntu installs the easiest path is to use the distribution packages or the official MySQL APT repository (this handles dependencies, system integration and automatic startup). That’s the route recommended by other replies in this thread (tasksel/apt approaches). If a specific MySQL build is required (offline install, special variant, testing an exact version), use the generic tarball approach below. (dev.mysql.com)

If keeping the downloaded tarball, follow these high‑level steps (examples here assume an install under /opt/mysql-5.6.17 — adapt paths as needed):

# verify archive integrity (checksum or GPG)
sha256sum mysql-5.6.17-linux-glibc2.5-i686.tar.gz

# create a mysql user/group for the server
sudo groupadd mysql
sudo useradd -r -g mysql -s /bin/false mysql

# extract the archive into /opt (or /usr/local) and set ownership
# (extract with tar; then:)
sudo chown -R mysql:mysql /opt/mysql-5.6.17

# initialize the data directory (MySQL 5.6 uses mysql_install_db)
sudo /opt/mysql-5.6.17/scripts/mysql_install_db --user=mysql --basedir=/opt/mysql-5.6.17 --datadir=/var/lib/mysql

# install an init script and start the server
sudo cp /opt/mysql-5.6.17/support-files/mysql.server /etc/init.d/mysql
sudo /opt/mysql-5.6.17/bin/mysqld_safe --user=mysql &

# secure the install
sudo /opt/mysql-5.6.17/bin/mysql_secure_installation

The official MySQL docs explain the generic‑binary layout, integrity checks and the use of mysql_install_db for 5.6. (dev.mysql.com)

Troubleshooting notes: a 32‑bit tarball on a 64‑bit system often fails with missing library errors — use ldd on the mysqld binary to find missing shared libs. The generic builds may require system libraries such as libaio; install those from APT if needed. If integration with the OS init system or automatic upgrades is important, prefer the distro packages or the MySQL APT repo. (dzone.com)

Recommended Answers

All 7 Replies

Wouldn't be easier? Am guessing it applies to 13.04 too.

commented: Good link for this poster. +12

That is the source code. You need the GNU C/C++ compiler suite at the least (plus probably cmake as well) which are packages you need to install from the Ubuntu aptitude repository. In any case, installing the binaries from standard repositories (the link that pritaeas provide tells how to do that) is a better option unless you are really experienced with installation of open source packages on Linux from source code.

FYI, 5.6.17 is the latest "stable" MySQL version. There are some subtle, but important, differences from the 5.1 versions that most sites run.

That is the source code. [...]

No, no, it's a precompiled package, judging by the filename; it's got 'i686' in there somewhere.

If you want mysql for LAMP, the easiest way I know is

sudo aptitude install tasksel
sudo tasksel

navigate the menu with arrow keys, select LAMP with spacebar, return, done.

you run this commands
tar xzvf mysql-5.6.17-linux-glibc2.5-i686.tar.gz
After extract this file go to inside of the file and run these commands
./configure
make
sudo make install

Thankx

Apt is what makes Ubuntu (and Debian) awesome! You should be able to get MySQL running with a single command:

sudo apt-get install mysql-server mysql-client

Unless there's a really good reason (like you need a specific version of mysql that isn't in the Ubuntu repository) I wouldn't install it any other way.

Good luck!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.