|
Table of Contents
This article is a follow-up article to Installing
MariaDB on Ubuntu 10.10 (Maverick Meerkat). The Debian packages for
Ubuntu 10.10 are now available. It may seem like overkill to document
package installation. However, the MariaDB packages aren't available
from a repository so installation is not simply a matter of adding an
entry to the
The MariaDB packages (like the MySQL packages) require the Perl
database interface common to all databases and the database interface
to the MySQL database. You'll also need shell> sudo apt-get install libdbi-perl libdbd-mysql-perl psmisc
Navigate to http://askmonty.org/wiki/MariaDB:Download#Packages and
find a link to the Meerkat package suitable for your architecture.
Choose your mirror and then select the As already noted, the various mirrors aren't package repositories. You'll need to download the packages you need and install them locally. You can download all the files (with the exception of Pakages.gz) and install them all, however the required files are:
Note: The 64 bit files are shown above. Be sure to choose the files suitable to your architecture. Once the files have been downloaded, navigate to your download directory and use the Debian package manager command dpkg: shell> sudo dpkg --install mysql-common_5.1.42-mariadb73_all.deb shell> sudo dpkg --install libmariadbclient16_5.1.42-mariadb73_amd64.deb \ mariadb-client-core-5.2_5.2.4-mariadb94_amd64.deb \ libmysqlclient16_5.1.42-mariadb73_amd64.deb \ mariadb-client_5.1.42-mariadb73_all.deb \ mariadb-client-5.1_5.1.42-mariadb73_amd64.deb \ mariadb-server_5.1.42-mariadb73_all.deb \ mariadb-server-core-5.2_5.2.4-mariadb94_amd64.deb \ mariadb-server-5.1_5.1.42-mariadb73_amd64.deb \ During installation you will be asked to add a password for the root user. Use the following command to confirm that the files have been installed: shell> apt-cache search maria You should see output similar to the following: ... maria-doc - documentation of Maria mariadb-client-5.2 - MariaDB database client binaries mariadb-server-5.2 - MariaDB database server binaries mariadb-server - MariaDB database server mariadb-client - MariaDB database client mariadb-server-core-5.2 - MariaDB database core server files mysql-common - MariaDB database common files (e.g. /etc/mysql/my.cnf) libmariadbclient16 - MariaDB database client library libmysqlclient16 - Virtual package to satisfy external depends mariadb-client-core-5.2 - MariaDB database core client binaries
When you install MariaDB using the Debian packages, the mysql client
and other utilities are installed to the
Also, the package installer configures the database server to start
automatically and runs the mysql_secure_installation script.
However, you may want to add a user and grant that user privileges.
If you do this you'll probably also want to add a
If you want remote access to your server there is another change that
you will have to make. The package files install the shell> mysql -u
Change the Peter Lavin is a technical writer who has been published in a number of print and online magazines. He is the author of Object Oriented PHP, published by No Starch Press and a contributor to PHP Hacks by O'Reilly Media. Please do not reproduce this article in whole or part, in any form, without obtaining written permission. |
||
|
|
||