Daniel Wisnewski opened 7 years ago
|
|
%Daniel What version of MySQL server are you running? I'm asking this as error:
was being reported when MySQL version was too old and did not support for the extended precision of timestamp fields. |
|
Ah thanks, |
|
nitpicking: it was Andrzej that helped you :-) |
|
%andrzej.wojcik , %wojtek would it be possible to have some code inside the Tigase which checks the DB version and prints an error if version is not supported? I guess it is definitely possible, my question is rather how much work would it need to have it. |
|
%kobit It is planned (#3582) for this version but has to wait for it's turn (however in the end it may be solved differently - we are still discussing with Andrzej best possible solution) |
|
Super! |
|
%kobit %wojtek I think that you two are talking about two different things here. Wojciech is mentioning verification of supported database schema version, while Artur was asking about retrieving and verifying database software version. Artur, yes it would be possible but I would not suggest going this way. Database version does not have a standardized format, so we would need to create a parser for each database and then compare values. However, ie. our MySQL schema works with MariaDB and adding this check will make it more difficult to run on MariaDB. Also some hosting or cloud providers are adding something to version string returned by their branded version of database, which would throw errors in this cases as unsupported. |
|
Ok, I understand. Thank you for explanation Andrzej. I agree with you, it does not make much sense to detect versions of all possible databases. Instead we will have something like recommended versions of supported databases. |
|
Artur Hefczyc wrote:
%kobit We already do http://docs.tigase.org/tigase-server/snapshot/Administration_Guide/html_chunk/databasemgnt.html#_recommended_database_versions |
Type |
Bug
|
Priority |
Normal
|
Assignee | |
RedmineID |
5735
|
Version |
tigase-server-8.0.0
|
Spent time |
11h 15m
|
Attempting to upgrade v7.1.0 to v7.2.0 to replicate instructions from Eric on upgrading.
Setup and ran fresh copy of v7.1.0 with all components active, made small number of users and short message history to populate tables.
Shut down tigase v7.1.0, copy config files, and ran v7.2.0 upgrade-config. This worked OK, ran update-schema and entered user/password. Following error appears:
Wojciech, assigning to you since I think you wrote this? Looks like it could be a formatting issue?
MA was enabled for v7.1.0.