Now that you have the distribution unpacked, it's a good idea to create the user that will own the files and run the database. If you list the contents of the current directory you should see that a new directory containing all the mysql files has been created. You should see the names of files and directories wizzing by your screen. The x means extract, the v means verbose (show me everything that's happening), and the f indicates that the next argument is the filename to extract. Unpack it using the tar command with the appropriate arguments: This will decompress the file and remove the. To uncompress the file issue the command: tar.gz The gz indicates that the file is compressed.
The filename of the software will have two extenions on the end. Once you have the software, log in as root and move the tarball to that directory.
You can get the source distribution at the same place you get the rpm files: It will have some filename like: mysql-3.22.Ī common place to install software on linux systems is in the directory: The tarball is more formally called a binary source distribution. place startup file in proper startup location.initialize the database and create the tables with the included install script.change ownership of the directory from root to user mysql.create a user whose ID is used for running the database.create a symbolic link to the mysql directory.The last steps are simply to set an administration password, and then modify your system so that it starts the mysql deamon everytime the system is started.īasically you'll be performing the following steps: Once you have the software, and created a user, you can install the database and start it up.
This way there are less root owned files on your system, and fewer opportunities for exploiting a root owned process. Because this is something of a security risk, many people choose to create a regular user for running the mysql deamon. By default, mysql would run as a root process, and some of the files would be owned by root. To install the software you should be able to log into your system as root. The binary source tarball comes with everything you need to run MySQL, as well as all the client programs for interacting with the database, and the development libraries for writing or using your own programs with the database. When you unpack a tar ball it recreates the original directory structure and files. tar stands for Tape Archive, and refers to a format for storing and archiving files and directory structures. Tarballs usually come as compressed, tar'd files.
It usually involves just a few simple steps. You'll be doing it later when you install DBI as well. Installing things from tarballs is a common practice on UNIX/Linux Going on with the installation, and you'll see all the work that
Learn more about several aspects of your system, and what's really Installing MySQL from a tarball should be straightforwardīut there are several steps, and therefore several opportunitiesįor things to get funky. Installing MySQL from a tarball Installing MySQL from a tarball