MariaDB 10.x install – Debian 7.4 x64

As Debian is still using MySQL in default, there are very few steps to install MariaDB 10.x…

First you need to install prerequisity + add repository from trustful software source, I choose Czech source:

root@deb74:~# sudo apt-get install python-software-properties
Reading package lists… Done
Building dependency tree
Reading state information… Done
python-software-properties is already the newest version.
python-software-properties set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@deb74:~# sudo apt-key adv –recv-keys –keyserver 0xcbcb082a1bb943db
Executing: gpg –ignore-time-conflict –no-options –no-default-keyring –secret-keyring /tmp/tmp.2KuWNMuJA1 –trustdb-name /etc/apt//trustdb.gpg –keyring /etc/apt/trusted.gpg –primary-keyring /etc/apt/trusted.gpg –keyring /etc/apt/trusted.gpg.d// –keyring /etc/apt/trusted.gpg.d//debian-archive-squeeze-automatic.gpg –keyring /etc/apt/trusted.gpg.d//debian-archive-squeeze-stable.gpg –keyring /etc/apt/trusted.gpg.d//debian-archive-wheezy-automatic.gpg –keyring /etc/apt/trusted.gpg.d//debian-archive-wheezy-stable.gpg –recv-keys –keyserver 0xcbcb082a1bb943db
gpg: requesting key 1BB943DB from hkp server
gpg: key 1BB943DB: public key „MariaDB Package Signing Key <>“ imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1
root@deb74:~# sudo add-apt-repository ‚deb wheezy main‘

Now just update repository + install server (client will be included):

root@deb74:~# apt-get install mariadb-server
Reading package lists… Done
Building dependency tree       
Reading state information… Done
The following extra packages will be installed:
  libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmariadbclient18 libmysqlclient18
  libnet-daemon-perl libplrpc-perl mariadb-client-10.0 mariadb-client-core-10.0 mariadb-common
  mariadb-server-10.0 mariadb-server-core-10.0 mysql-common
Suggested packages:
  libipc-sharedcache-perl tinyca mariadb-test
The following NEW packages will be installed:
  libaio1 libdbd-mysql-perl libdbi-perl libhtml-template-perl libmariadbclient18 libmysqlclient18
  libnet-daemon-perl libplrpc-perl mariadb-client-10.0 mariadb-client-core-10.0 mariadb-common mariadb-server
  mariadb-server-10.0 mariadb-server-core-10.0 mysql-common
0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
Need to get 37.4 MB/37.4 MB of archives.
After this operation, 130 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 wheezy/main libmariadbclient18 amd64 10.0.10+maria-1~wheezy [921 kB]
Get:2 wheezy/main libmysqlclient18 amd64 10.0.10+maria-1~wheezy [2,956 B]
Get:3 wheezy/main mariadb-client-core-10.0 amd64 10.0.10+maria-1~wheezy [1,993 kB]
Get:4 wheezy/main mariadb-client-10.0 amd64 10.0.10+maria-1~wheezy [5,596 kB]
Get:5 wheezy/main libaio1 amd64 0.3.109-3 [9,150 B]
Get:6 wheezy/main mariadb-server-core-10.0 amd64 10.0.10+maria-1~wheezy [6,185 kB]
Get:7 wheezy/main mariadb-server-10.0 amd64 10.0.10+maria-1~wheezy [21.5 MB]
Get:8 wheezy/main libnet-daemon-perl all 0.48-1 [46.2 kB]
Get:9 wheezy/main libplrpc-perl all 0.2020-2 [36.0 kB]
Get:10 wheezy/main libdbi-perl amd64 1.622-1 [898 kB]
Get:11 wheezy/main libdbd-mysql-perl amd64 4.021-1+b1 [126 kB]
Get:12 wheezy/main libhtml-template-perl all 2.91-1 [72.0 kB]
Get:13 wheezy/main mariadb-server all 10.0.10+maria-1~wheezy [2,996 B]
Fetched 18.9 MB in 3s (5,972 kB/s)     
Preconfiguring packages …
Selecting previously unselected package libaio1:amd64.
(Reading database … 142951 files and directories currently installed.)
Unpacking libaio1:amd64 (from …/libaio1_0.3.109-3_amd64.deb) …
Selecting previously unselected package mysql-common.
Unpacking mysql-common (from …/mysql-common_10.0.10+maria-1~wheezy_all.deb) …
Selecting previously unselected package mariadb-common.
Unpacking mariadb-common (from …/mariadb-common_10.0.10+maria-1~wheezy_all.deb) …
Selecting previously unselected package libnet-daemon-perl.
Unpacking libnet-daemon-perl (from …/libnet-daemon-perl_0.48-1_all.deb) …
Selecting previously unselected package libplrpc-perl.
Unpacking libplrpc-perl (from …/libplrpc-perl_0.2020-2_all.deb) …
Selecting previously unselected package libdbi-perl.
Unpacking libdbi-perl (from …/libdbi-perl_1.622-1_amd64.deb) …
Selecting previously unselected package libmariadbclient18.
Unpacking libmariadbclient18 (from …/libmariadbclient18_10.0.10+maria-1~wheezy_amd64.deb) …
Selecting previously unselected package libmysqlclient18.
Unpacking libmysqlclient18 (from …/libmysqlclient18_10.0.10+maria-1~wheezy_amd64.deb) …
Selecting previously unselected package libdbd-mysql-perl.
Unpacking libdbd-mysql-perl (from …/libdbd-mysql-perl_4.021-1+b1_amd64.deb) …
Selecting previously unselected package mariadb-client-core-10.0.
Unpacking mariadb-client-core-10.0 (from …/mariadb-client-core-10.0_10.0.10+maria-1~wheezy_amd64.deb) …
Selecting previously unselected package mariadb-client-10.0.
Unpacking mariadb-client-10.0 (from …/mariadb-client-10.0_10.0.10+maria-1~wheezy_amd64.deb) …
Selecting previously unselected package mariadb-server-core-10.0.
Unpacking mariadb-server-core-10.0 (from …/mariadb-server-core-10.0_10.0.10+maria-1~wheezy_amd64.deb) …
Processing triggers for man-db …
Processing triggers for menu …
Setting up mysql-common (10.0.10+maria-1~wheezy) …
Setting up mariadb-common (10.0.10+maria-1~wheezy) …
Selecting previously unselected package mariadb-server-10.0.
(Reading database … 143329 files and directories currently installed.)
Unpacking mariadb-server-10.0 (from …/mariadb-server-10.0_10.0.10+maria-1~wheezy_amd64.deb) …
Selecting previously unselected package libhtml-template-perl.
Unpacking libhtml-template-perl (from …/libhtml-template-perl_2.91-1_all.deb) …
Selecting previously unselected package mariadb-server.
Unpacking mariadb-server (from …/mariadb-server_10.0.10+maria-1~wheezy_all.deb) …
Processing triggers for man-db …
Setting up libaio1:amd64 (0.3.109-3) …
Setting up libnet-daemon-perl (0.48-1) …
Setting up libplrpc-perl (0.2020-2) …
Setting up libdbi-perl (1.622-1) …
Setting up libhtml-template-perl (2.91-1) …
Setting up libmysqlclient18 (10.0.10+maria-1~wheezy) …
Setting up libdbd-mysql-perl (4.021-1+b1) …
Setting up libmariadbclient18 (10.0.10+maria-1~wheezy) …
Setting up mariadb-client-core-10.0 (10.0.10+maria-1~wheezy) …
Setting up mariadb-client-10.0 (10.0.10+maria-1~wheezy) …
Setting up mariadb-server-core-10.0 (10.0.10+maria-1~wheezy) …
Setting up mariadb-server-10.0 (10.0.10+maria-1~wheezy) …
[ ok ] Stopping MariaDB database server: mysqld.
140422 10:02:11 [Note] InnoDB: The InnoDB memory heap is disabled
140422 10:02:11 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
140422 10:02:11 [Note] InnoDB: Compressed tables use zlib 1.2.7
140422 10:02:11 [Note] InnoDB: Using Linux native AIO
140422 10:02:11 [Note] InnoDB: Not using CPU crc32 instructions
140422 10:02:11 [Note] InnoDB: Initializing buffer pool, size = 256.0M
140422 10:02:11 [Note] InnoDB: Completed initialization of buffer pool
140422 10:02:11 [Note] InnoDB: Highest supported file format is Barracuda.
140422 10:02:11 [Note] InnoDB: 128 rollback segment(s) are active.
140422 10:02:11 [Note] InnoDB: Waiting for purge to start
140422 10:02:11 [Note] InnoDB:  Percona XtraDB ( 5.6.15-63.0 started; log sequence number 1619068
140422 10:02:11 [Note] Plugin ‚FEEDBACK‘ is disabled.
140422 10:02:12 [Note] InnoDB: FTS optimize thread exiting.
140422 10:02:12 [Note] InnoDB: Starting shutdown…
140422 10:02:13 [Note] InnoDB: Shutdown completed; log sequence number 1619078
[ ok ] Starting MariaDB database server: mysqld.
[info] Checking for corrupt, not cleanly closed and upgrade needing tables..
Setting up mariadb-server (10.0.10+maria-1~wheezy) …
Processing triggers for menu …

You can log-in to check version:

root@deb74:~# mysql -uroot -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 43
Server version: 10.0.10-MariaDB-1~wheezy-log binary distribution

Copyright (c) 2000, 2014, Oracle, SkySQL Ab and others.

Type ‚help;‘ or ‚\h‘ for help. Type ‚\c‘ to clear the current input statement.

MariaDB [(none)]>


This entry was posted in Databases, MySQL. Bookmark the permalink.

Napsat komentář