Upgraded MySQL

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Upgraded MySQL

Postby dspaan » Sun May 15, 2016 1:15 pm

Hello everyone,

I've got a Vicibox Redux v.3.1.15 server with Vicidial 2.12b0.5 SVN 2530 and asterisk 1.4 on which i was also running Limesurvey.

Due to the newest version requiring MySQL 5.5.3 i had to do an upgrade of MySQL.

I created a VPS clone of the server to test with.
I first went into Yast and used this repository:
http://download.opensuse.org/distributi ... /repo/oss/
I then upgraded mysql-community-server from v5.1.57-0.3.1 to v5.5.16-3.3.1
I got an error about unknown option '--skip-locking' which i solved by disabling that in my.cnf
I then used this repo http://download.opensuse.org/distributi ... /repo/oss/
And upgraded to mysql-community-server v5.5.30-1.1.1

I checked apache error log, mysql error log, messages but i don't see anything gamebreaking. The web interface and asterisk are still running.

So far as i can see all is running fine. But how can i be sure no problems will come of this?
Regards, Dennis

Vicibox 9.0.1
Version: 2.14b0.5
SVN Version: 3199
DB Schema Version: 1588
Build: 200310-1801
dspaan
 
Posts: 1377
Joined: Fri Aug 21, 2009 1:40 pm
Location: The Netherlands

Re: Upgraded MySQL

Postby williamconley » Sun May 15, 2016 3:28 pm

MySQL doesn't change enough from version to version to cause any issues. As long as it's there and running it should be fine. Similar to NTP and networking, it must merely be present and functional.

BUT: Beware the my.cnf entries. Vicidial requires some unusual settings pertaining to capacity (specifically the number of open connections is freakin' huge by comparison to normal/default). So be sure to check settings against the Vicidial my.cnf.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Upgraded MySQL

Postby mflorell » Sun May 15, 2016 6:44 pm

We do NOT recommend running MySQL 5.5 or higher. We instead recommend switching to a comparable MariaDB version, like most Linux distros have done in the last 2 years. Unfortunately, MySQL 5.5 removed a lot of legacy code that helped it to run better, That code is still in MariaDB, which is a drop-in replacement for MySQL.
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Upgraded MySQL

Postby williamconley » Sun May 15, 2016 6:48 pm

I stand corrected. So does LimeSurvey require MySQL or will it run on MariaDB 5.5?
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Upgraded MySQL

Postby dspaan » Mon May 16, 2016 5:38 am

Gentlemen, thank you for the feedback.

I just installed MariaDB this way:

First I uninstalled mysql community server with yast and then rebooted.
Then I proceded to install mariadb-client and libmariadb-client16.
Then I installed mariadb server.
I made a backup of my.cnf and created a new my.cnf from one of the newer vicibox servers that came with mariadb.
After rebooting I noticed mariadb would not start automatically. To fix that I had to use yast and then go to System>System Services (Runlevel) and enable mysql.

Then i installed Limesurvey and it worked fine. Now i will do the same steps on the production server and hope no problems will arise. The difference there is that i have to do a limesurvey upgrade whereas on the test server i did a clean install.
Regards, Dennis

Vicibox 9.0.1
Version: 2.14b0.5
SVN Version: 3199
DB Schema Version: 1588
Build: 200310-1801
dspaan
 
Posts: 1377
Joined: Fri Aug 21, 2009 1:40 pm
Location: The Netherlands

Re: Upgraded MySQL

Postby dspaan » Mon May 16, 2016 9:41 am

Update: The upgrade succeeded on the operational server but only Mariadb and asterisk won't start during boot.

I can start them by doing the
Code: Select all
rcmysql start
and
Code: Select all
/usr/sbin/asterisk -vvvgc
commands.

Then i wanted to change the startup config by using Yast > System > System Services (runlevel) but when i did that Yast got stuck on loading the next screen at 28% and when i rebooted the server my inittab, boot and rc files were corrupted. Luckily i had backups of those from another server and the server is up again.

But now i have the same problem of asterisk and mariadb not starting on boot.

How do i fix this?
Regards, Dennis

Vicibox 9.0.1
Version: 2.14b0.5
SVN Version: 3199
DB Schema Version: 1588
Build: 200310-1801
dspaan
 
Posts: 1377
Joined: Fri Aug 21, 2009 1:40 pm
Location: The Netherlands


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 127 guests

cron