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

Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 

Recently uploaded (20)

Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 

在 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.