Moved 2.6.5 to new host, imported SQL, getting errors

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
rotaryracer
Posts: 18
Joined: Thu Sep 04, 2014 12:02 pm

Moved 2.6.5 to new host, imported SQL, getting errors

Post by rotaryracer »

Hi guys - I updated my 2.5.5 p5 to 2.6.5 by following the step-by-step instructions, and my production instance of HESK is working fine. I'm getting ready to move hosts, so I installed a clean version of 2.6.5 at my new host (using Softaculous), exported the SQL database, imported it into the new database, and logged in. I seem to be having some odd MySQL errors, even though when in the admin panel, it says it's connected fine. I turned on debug mode and am seeing the following when I try to view tickets in the dashboard:
Error:

Can't execute SQL: UPDATE `hesk_tickets` SET `status`='3', `closedat`=NOW(), `closedby`='-1', `history`=CONCAT(`history`,'
2015-11-05 13:11:27 | closed by (automatically)
') WHERE `status` = '2' AND `lastchange` <= '2015-10-29 14:11:27'
MySQL said:
Unknown column 'closedat' in 'field list'
I've tried updating the password in MySQL as well as HESK admin panel to make sure they're a match. My current host was using MariaDB - could that cause an issue? I probably made a very stupid mistake along the way...hoping someone might be able to point out what. :) My production version is still working fine on the existing host, but want to be ready for a move in the next few weeks. Any other recommendations for an easier migration are very welcome - I'm not much of a tech guy, but do my best to follow instructions!

Thanks...

Jason
rotaryracer
Posts: 18
Joined: Thu Sep 04, 2014 12:02 pm

Re: Moved 2.6.5 to new host, imported SQL, getting errors

Post by rotaryracer »

Spent some more time Googling and searching this morning and after a bit more fiddling, I got it working! One note that I didn't see in the knowledgebase (not sure if it was the "missing link" to make this work or not) was to delete/drop all the existing tables in the new database prior to import. I did not do that the first time, and I wonder if maybe that caused the issues?

Anyway, here were my steps:

1 - Backed up HESK site folder and SQL database.
2 - Upgrade HESK 2.5.5 p5 to 2.6.5 on production site using Klemen's step-by-step instructions (worked great)
3 - Confirmed production site is running fine on new version.
4 - Install HESK 2.6.5 on new server.
5 - Login to new HESK server, confirm it works (probably could've setup settings at this point, chose not to)
6 - Export SQL database from current production site (data and structure).
7 - Using phpMyadmin, open new server SQL database (created via Softaculous script) and drop all tables
8 - Still in phpMyAdmin, import production site SQL tables into new server SQL database
9 - Attempt to log in to new server admin, find password doesn't work :D
10 - Upload reset_password.php, follow instructions, gain access to HESK on new server with all data!

I probably could've done a cPanel-to-cPanel copy which would've been easier, but there's a lot of other crap on the old server I'm not bringing with me, and I wanted to have a clean start. I'll spend today getting the settings updated, customized email templates copied over, etc., and will test prior to switching everything over.

I'm more stubborn than smart, so I don't know if the above steps are correct (or if there's a much easier way to do this), but it worked for me. :)

Thanks...

Jason
Klemen
Site Admin
Posts: 10167
Joined: Fri Feb 11, 2005 4:04 pm

Re: Moved 2.6.5 to new host, imported SQL, getting errors

Post by Klemen »

Glad to hear you got it working.

The errors you were getting were because you were trying to use version 2.6.5 files with version 2.5.5 database.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply