Poblem importing DB full backup
#1
Poblem importing DB full backup
Hi, I have follow the instructions here https://docs.sentora.org/?node=107 to update my Sentora 1.0.3 in Cneot 7.2009  to Sentora 2 in Ubuntu 20.04. The error that i have is when I try to import the full backup dbs to my actual Sentora server. The error is:
ERROR 1067 (42000) at line 705: Invalid default value for 'event_time'

May you ti help me to solve it, please?

Thanks by your attention.
Reply
#2
RE: Poblem importing DB full backup
I have solved thus:
This is the correct:
"CREATE TABLE t1 (
ts TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6)
);"
This is not permitted:

CREATE TABLE t1 (
ts TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(3)
);

Thank you very much.
Reply
#3
RE: Poblem importing DB full backup
Are you using Sentora v2.0.0? I noticed a lot of changes with DB entries compared to pre-v2
Glad you sorted it out!
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
#4
RE: Poblem importing DB full backup
For anybody interested, the newer mysql database requires changes to the time stamps. This was the issue.
For updating to Sentora v2+ from previous versions, you may need to alter your database backups to accommodate the changes for the newer database server.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
#5
RE: Poblem importing DB full backup
(11-19-2023, 01:00 PM)cfreire Wrote: I have solved thus:
This is the correct:
"CREATE TABLE t1 (
  ts TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6)
);"
This is not permitted:

CREATE TABLE t1 (
  ts TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(3)
);

Thank you very much.

Hello @[cfreire], 
The t1 table you are talking about is not apart of sentoras default installation. This table may be in your database because you installed an old third party module or had this module installed for many years with no updates or support. We are trying to get a record or old modules that need to be updated before upgrade as soon as we can. Thank you for finding this and reporting it to us.
-Jettaman-

NEW: Sentora v.2.0.2 has been released!!!

Sentora's quick recovery depends on community support and donations. We need to stand as one and help Sentora into the future.

Donate HERE and do your part. We thank you for your support.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Restore backup from 1.x BobOki 2 3 ,906 03-27-2023, 05:31 AM
Last Post: TGates
Importing a database from Cpanel papathimiu 2 4 ,570 02-20-2023, 10:56 AM
Last Post: papathimiu

Forum Jump:


Users browsing this thread: 1 Guest(s)