Installare i file .rpm di MariaDB

Questo articolo spiega come scaricare e installare i file .rpm utilizzando il comando rpm. Attualmente i file non sono disponibili nei repository di Red Hat, perciò non è possibile utilizzare il comando yum. Tuttavia, si tratta di un inconveniente minore.

Si visiti http://downloads.askmonty.org, si scelga la versione di MariaDB desiderata e poi CentOS 5 amd64 per l'architettura a 64 bit o CentOS 5 x86 per l'architettura a 32 bit.

Selezionando uno di questi link si viene ridirezionati al mirror più vicino. Si entri nella directory rpms e si scarichino i pacchetti desiderati. I loro nomi saranno simili a:

MariaDB-client-5.2.5-99.el5.x86_64.rpm
MariaDB-debuginfo-5.2.5-99.el5.x86_64.rpm
MariaDB-devel-5.2.5-99.el5.x86_64.rpm
MariaDB-server-5.2.5-99.el5.x86_64.rpm
MariaDB-shared-5.2.5-99.el5.x86_64.rpm
MariaDB-test-5.2.5-99.el5.x86_64.rpm

Su un server standard si necessita di scaricare almeno i file client, shared e server.

Prima di installare MariaDB, ci si assicuri che non vada in conflitto con un'installazione di MySQL già esistente. Per accertarsene, si può eseguire il comando:

yum info mysql

Se necessario, è possibile rimuovere MySQL così:

yum remove mysql

Per installare MariaDB, si esegua il comando:

rpm -ivh MariaDB-*.

Si otterrà un output simile al seguente:

Preparing...                ########################################### [100%]
   1:MariaDB-shared         ########################################### [ 14%]
   2:MariaDB-client         ########################################### [ 29%]
   3:MariaDB-client         ########################################### [ 43%]
   4:MariaDB-debuginfo      ########################################### [ 57%]
   5:MariaDB-devel          ########################################### [ 71%]
   6:MariaDB-server         ########################################### [ 86%]

PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h hostname password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the MySQL manual for more instructions.

Please report any problems with the /usr/bin/mysqlbug script!

The latest information about MariaDB is available at http://www.askmonty.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Support MariaDB development by buying support/new features from
Monty Program Ab. You can contact us about this at sales@askmonty.org.
Alternatively consider joining our community based development effort:
http://askmonty.org/wiki/index.php/MariaDB#How_can_I_participate_in_the_development_of_MariaDB

Starting MySQL....[  OK  ]
Giving mysqld 2 seconds to start
   7:MariaDB-test           ########################################### [100%]

Si seguano le istruzioni presenti nell'output e si crei una password per l'utente root eseguendo mysqladmin o lo script /usr/bin/mysql_secure_installation.

Con i file .rpm di MariaDB, si installano anche i tool di MySQL nella directory /usr/bin. Per avere la conferma che MariaDB è correttamente installato, si può usare il client mysql. Eseguento il comando mysql dovrebbe apparire il prompt di MariaDB.

Si veda anche

Commenti

Sto caricando i commenti......
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.