SlideShare a Scribd company logo
1 of 4
Download to read offline
1
Installing MariaDB Debian
Packages on Ubuntu 10.10
Peter Lavin
Table of Contents
Packages to Install Prior to the MariaDB .debs ........................................................................ 1
The MariaDB Packages ....................................................................................................... 1
Post-Installation .................................................................................................................. 3
About the Author ............................................................................................................... 4
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 /etc/apt/sources.list file and then using your package manager. You'll
need to download the required packages and install them locally. You'll also need additional packages that
aren't available on the MariaDB mirrors. This article documents those steps.
Packages to Install Prior to the MariaDB .debs
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 psmisc a collection of
utilities that use the proc file system. You can install these packages using your package manager or go
to the command line and issue the command:
shell> sudo apt-get install libdbi-perl libdbd-mysql-perl psmisc
The MariaDB Packages
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 binary directory. You
should see something similar to the following:
Installing MariaDB Debian
Packages on Ubuntu 10.10
2
Figure 1. Debian package files
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:
• libmysqlclient16_5.2.4-mariadb94_amd64.deb
• libmariadbclient16_5.2.4-mariadb94_amd64.deb
• mariadb-client-5.2_5.2.4-mariadb94_amd64.deb
• mariadb-client_5.2.4-mariadb94_all.deb
• mariadb-server_5.2.4-mariadb94_all.deb
• mariadb-server-5.2_5.2.4-mariadb94_amd64.deb
• mysql-common_5.2.4-mariadb94_all.deb
• mariadb-client-core-5.2_5.2.4-mariadb94_amd64.deb
• mariadb-server-core-5.2_5.2.4-mariadb94_amd64.deb
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:
Installing MariaDB Debian
Packages on Ubuntu 10.10
3
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
Post-Installation
When you install MariaDB using the Debian packages, the mysql client and other utilities are installed to
the /usr/bin directory, a directory that is in the default path, so there is no need to add a directory to
your PATH variable. You can use the shell command which mysql to confirm this.
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 .my.cnf file. To perform these tasks see the
Post-Installation section of Installing MariaDB on Ubuntu 10.10 (Maverick Meerkat).
If you want remote access to your server there is another change that you will have to make. The
package files install the /etc/mysql/my.cnf configuration file with the bind-address option set
to 127.0.0.1. With this setting, attempting remote access results in the following error:
shell> mysql -u username -h ip_or_hostname -p
Enter password:
ERROR 2003 (HY000): Can't connect to MySQL server on 'ip_or_hostname' (61)
Change the bind-address option to 0.0.0.0 and, providing you've created a user with remote access,
you'll be able to log in to your server from anywhere. (You will of course, also need the mysql client
Installing MariaDB Debian
Packages on Ubuntu 10.10
4
installed on the remote computer.) After making this change don't forget to restart the server. You can do
this by issuing the command sudo /etc/init.d/mysql restart.
About the Author
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.

More Related Content

More from YUCHENG HU

Presta shop 1.6 如何安装简体中文语言文件
Presta shop 1.6 如何安装简体中文语言文件Presta shop 1.6 如何安装简体中文语言文件
Presta shop 1.6 如何安装简体中文语言文件YUCHENG HU
 
Logback 介绍
Logback 介绍Logback 介绍
Logback 介绍YUCHENG HU
 
Presta shop 1.6 详细安装指南
Presta shop 1.6 详细安装指南Presta shop 1.6 详细安装指南
Presta shop 1.6 详细安装指南YUCHENG HU
 
Presta shop 1.6 的安装环境
Presta shop 1.6 的安装环境Presta shop 1.6 的安装环境
Presta shop 1.6 的安装环境YUCHENG HU
 
Presta shop 1.6 如何安装简体中文语言文件
Presta shop 1.6 如何安装简体中文语言文件Presta shop 1.6 如何安装简体中文语言文件
Presta shop 1.6 如何安装简体中文语言文件YUCHENG HU
 
Presta shop 1.6 图文安装教程
Presta shop 1.6 图文安装教程Presta shop 1.6 图文安装教程
Presta shop 1.6 图文安装教程YUCHENG HU
 
V tiger 5.4.0 图文安装教程
V tiger 5.4.0 图文安装教程V tiger 5.4.0 图文安装教程
V tiger 5.4.0 图文安装教程YUCHENG HU
 
Confluence 回顾(retrospectives) 蓝图 cwikiossez
Confluence 回顾(retrospectives) 蓝图   cwikiossezConfluence 回顾(retrospectives) 蓝图   cwikiossez
Confluence 回顾(retrospectives) 蓝图 cwikiossezYUCHENG HU
 
Confluence 会议记录(meeting notes)蓝图 cwikiossez
Confluence 会议记录(meeting notes)蓝图   cwikiossezConfluence 会议记录(meeting notes)蓝图   cwikiossez
Confluence 会议记录(meeting notes)蓝图 cwikiossezYUCHENG HU
 
VTIGER - 销售机会 - CWIKIOSSEZ
VTIGER - 销售机会 - CWIKIOSSEZ VTIGER - 销售机会 - CWIKIOSSEZ
VTIGER - 销售机会 - CWIKIOSSEZ YUCHENG HU
 
Confluence 使用一个模板新建一个页面 cwikiossez
Confluence 使用一个模板新建一个页面     cwikiossezConfluence 使用一个模板新建一个页面     cwikiossez
Confluence 使用一个模板新建一个页面 cwikiossezYUCHENG HU
 
Confluence 使用模板
Confluence 使用模板Confluence 使用模板
Confluence 使用模板YUCHENG HU
 
Cwikiossez confluence 订阅页面更新邮件通知
Cwikiossez confluence 订阅页面更新邮件通知Cwikiossez confluence 订阅页面更新邮件通知
Cwikiossez confluence 订阅页面更新邮件通知YUCHENG HU
 
Cwikiossez confluence 关注页面 博客页面和空间
Cwikiossez confluence 关注页面 博客页面和空间Cwikiossez confluence 关注页面 博客页面和空间
Cwikiossez confluence 关注页面 博客页面和空间YUCHENG HU
 
My sql università di enna a.a. 2005-06
My sql   università di enna a.a. 2005-06My sql   università di enna a.a. 2005-06
My sql università di enna a.a. 2005-06YUCHENG HU
 
My sql would you like transactions
My sql would you like transactionsMy sql would you like transactions
My sql would you like transactionsYUCHENG HU
 
MySQL 简要介绍
MySQL 简要介绍MySQL 简要介绍
MySQL 简要介绍YUCHENG HU
 
mysql 5.5.25 用户安装备忘
mysql 5.5.25 用户安装备忘mysql 5.5.25 用户安装备忘
mysql 5.5.25 用户安装备忘YUCHENG HU
 

More from YUCHENG HU (20)

Git
GitGit
Git
 
Presta shop 1.6 如何安装简体中文语言文件
Presta shop 1.6 如何安装简体中文语言文件Presta shop 1.6 如何安装简体中文语言文件
Presta shop 1.6 如何安装简体中文语言文件
 
Logback 介绍
Logback 介绍Logback 介绍
Logback 介绍
 
Presta shop 1.6 详细安装指南
Presta shop 1.6 详细安装指南Presta shop 1.6 详细安装指南
Presta shop 1.6 详细安装指南
 
Presta shop 1.6 的安装环境
Presta shop 1.6 的安装环境Presta shop 1.6 的安装环境
Presta shop 1.6 的安装环境
 
Presta shop 1.6 如何安装简体中文语言文件
Presta shop 1.6 如何安装简体中文语言文件Presta shop 1.6 如何安装简体中文语言文件
Presta shop 1.6 如何安装简体中文语言文件
 
Presta shop 1.6 图文安装教程
Presta shop 1.6 图文安装教程Presta shop 1.6 图文安装教程
Presta shop 1.6 图文安装教程
 
V tiger 5.4.0 图文安装教程
V tiger 5.4.0 图文安装教程V tiger 5.4.0 图文安装教程
V tiger 5.4.0 图文安装教程
 
Confluence 回顾(retrospectives) 蓝图 cwikiossez
Confluence 回顾(retrospectives) 蓝图   cwikiossezConfluence 回顾(retrospectives) 蓝图   cwikiossez
Confluence 回顾(retrospectives) 蓝图 cwikiossez
 
Confluence 会议记录(meeting notes)蓝图 cwikiossez
Confluence 会议记录(meeting notes)蓝图   cwikiossezConfluence 会议记录(meeting notes)蓝图   cwikiossez
Confluence 会议记录(meeting notes)蓝图 cwikiossez
 
VTIGER - 销售机会 - CWIKIOSSEZ
VTIGER - 销售机会 - CWIKIOSSEZ VTIGER - 销售机会 - CWIKIOSSEZ
VTIGER - 销售机会 - CWIKIOSSEZ
 
Confluence 使用一个模板新建一个页面 cwikiossez
Confluence 使用一个模板新建一个页面     cwikiossezConfluence 使用一个模板新建一个页面     cwikiossez
Confluence 使用一个模板新建一个页面 cwikiossez
 
Confluence 使用模板
Confluence 使用模板Confluence 使用模板
Confluence 使用模板
 
Cwikiossez confluence 订阅页面更新邮件通知
Cwikiossez confluence 订阅页面更新邮件通知Cwikiossez confluence 订阅页面更新邮件通知
Cwikiossez confluence 订阅页面更新邮件通知
 
Cwikiossez confluence 关注页面 博客页面和空间
Cwikiossez confluence 关注页面 博客页面和空间Cwikiossez confluence 关注页面 博客页面和空间
Cwikiossez confluence 关注页面 博客页面和空间
 
My sql università di enna a.a. 2005-06
My sql   università di enna a.a. 2005-06My sql   università di enna a.a. 2005-06
My sql università di enna a.a. 2005-06
 
My sql would you like transactions
My sql would you like transactionsMy sql would you like transactions
My sql would you like transactions
 
MySQL 指南
MySQL 指南MySQL 指南
MySQL 指南
 
MySQL 简要介绍
MySQL 简要介绍MySQL 简要介绍
MySQL 简要介绍
 
mysql 5.5.25 用户安装备忘
mysql 5.5.25 用户安装备忘mysql 5.5.25 用户安装备忘
mysql 5.5.25 用户安装备忘
 

Recently uploaded

Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 

Recently uploaded (20)

Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 

在 Ubuntu 10.10 中安装 MariaDB Debian 软件包

  • 1. 1 Installing MariaDB Debian Packages on Ubuntu 10.10 Peter Lavin Table of Contents Packages to Install Prior to the MariaDB .debs ........................................................................ 1 The MariaDB Packages ....................................................................................................... 1 Post-Installation .................................................................................................................. 3 About the Author ............................................................................................................... 4 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 /etc/apt/sources.list file and then using your package manager. You'll need to download the required packages and install them locally. You'll also need additional packages that aren't available on the MariaDB mirrors. This article documents those steps. Packages to Install Prior to the MariaDB .debs 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 psmisc a collection of utilities that use the proc file system. You can install these packages using your package manager or go to the command line and issue the command: shell> sudo apt-get install libdbi-perl libdbd-mysql-perl psmisc The MariaDB Packages 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 binary directory. You should see something similar to the following:
  • 2. Installing MariaDB Debian Packages on Ubuntu 10.10 2 Figure 1. Debian package files 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: • libmysqlclient16_5.2.4-mariadb94_amd64.deb • libmariadbclient16_5.2.4-mariadb94_amd64.deb • mariadb-client-5.2_5.2.4-mariadb94_amd64.deb • mariadb-client_5.2.4-mariadb94_all.deb • mariadb-server_5.2.4-mariadb94_all.deb • mariadb-server-5.2_5.2.4-mariadb94_amd64.deb • mysql-common_5.2.4-mariadb94_all.deb • mariadb-client-core-5.2_5.2.4-mariadb94_amd64.deb • mariadb-server-core-5.2_5.2.4-mariadb94_amd64.deb 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:
  • 3. Installing MariaDB Debian Packages on Ubuntu 10.10 3 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 Post-Installation When you install MariaDB using the Debian packages, the mysql client and other utilities are installed to the /usr/bin directory, a directory that is in the default path, so there is no need to add a directory to your PATH variable. You can use the shell command which mysql to confirm this. 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 .my.cnf file. To perform these tasks see the Post-Installation section of Installing MariaDB on Ubuntu 10.10 (Maverick Meerkat). If you want remote access to your server there is another change that you will have to make. The package files install the /etc/mysql/my.cnf configuration file with the bind-address option set to 127.0.0.1. With this setting, attempting remote access results in the following error: shell> mysql -u username -h ip_or_hostname -p Enter password: ERROR 2003 (HY000): Can't connect to MySQL server on 'ip_or_hostname' (61) Change the bind-address option to 0.0.0.0 and, providing you've created a user with remote access, you'll be able to log in to your server from anywhere. (You will of course, also need the mysql client
  • 4. Installing MariaDB Debian Packages on Ubuntu 10.10 4 installed on the remote computer.) After making this change don't forget to restart the server. You can do this by issuing the command sudo /etc/init.d/mysql restart. About the Author 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.