0% found this document useful (0 votes)
12 views

Upgrading MySQL Asterisk 1.7

This document provides steps to upgrade the MySQL database from version 5.0.77 to 5.1 on an AsteriskNow 1.7 distribution. It involves stopping services, removing the old MySQL package, installing the new MySQL 5.1 package from a third party repository, reinstalling dependent packages like Freepbx, and restarting services.

Uploaded by

Open Contractors
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Upgrading MySQL Asterisk 1.7

This document provides steps to upgrade the MySQL database from version 5.0.77 to 5.1 on an AsteriskNow 1.7 distribution. It involves stopping services, removing the old MySQL package, installing the new MySQL 5.1 package from a third party repository, reinstalling dependent packages like Freepbx, and restarting services.

Uploaded by

Open Contractors
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Upgrading MySQL 5.0.77 to MySQL 5.1 for an AsteriskNow 1.

7 Distribution
BY ADMIN, ON MAY 4TH , 2011

Here is some quick steps on upgrading the MySQL 5.0.77 database that comes with AsteriskNOW 1.7. Note, you will be forced to remove Freepbx, a Digium package and any other packages that depend on MySQL. You will have to reinstall them after the upgrade is complete. 0) Stop Asterisk, MySQL and backup your recording theme directory (optional: only if you customized the look and feel): amportal stop service mysqld stop Optional: cd /var/www/html/recordings/ cp theme theme.bak 1) Get the exact version of MySQL that you are running yum list mysql 2) rpm -e nodeps allmatches [MySQL package name] In my case, the command looked like this: rpm -e nodeps allmatches mysql-5.0.77-4.el5_5.5.x86_64 3) Use a repo by webstatic, which contains MySQL 5.1 and 5.5, but we are upgrading to MySQL 5.1 rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm 4) yum install libmysqlclient15 enablerepo=webtatic 5) yum remove mysql mysql-* Note, the above steps will force you to remove Freepbx and any other packages that depend on MySQL. We will install them again after you upgrade the database. 6) yum install mysql51 mysql51-server enablerepo=webtatic 7) service mysqld start mysql_upgrade 8 ) reinstall Freepbx: yum install freepbx 9) reinstall Digium Addon for Dahdi module: yum install freepbx-digiumaddoninstaller 10) Start MySQL and Asterisk: service mysql start amportal start 11) Optionally restore your theme directory and then login to Freepbx and fix any issues that exist Optional:

cd /var/www/html/recordings/ mv theme.bak theme Login to Freepbx: Open a browser and point to http://<your hostname or ip>/

You might also like