Re: [Dev] [MySql5.7] Concern about MySql 5.7 scripts running with -Dsetup

2016-07-23 Thread Nirmal Fernando
Hi,

On Fri, Jul 22, 2016 at 2:19 PM, Kishanthan Thangarajah  wrote:

> "-Dsetup" is a development time option and in production it is not used
> mostly. Users manually populate the DB's using relevant scripts by
> executing them separately. Due to this fact only, we did not invest time in
> supporting mysql 5.7 with "-Dsetup" option. We have documented this also :
> https://docs.wso2.com/display/ADMIN447/Setting+up+MySQL
>

I don't see that we have explained this in the doc. Rather it says
following;

If you have installed MySQL version 5.7, execute the mysql5.7.sql as shown
below.

   1.

   Make a backup of the existing mysql.sql file and call it mysqlbackup.sql.
   2.

   Now, rename the existing mysql5.7.sql file to mysql.sql.
   3.

   Execute the product startup script using the -Dsetup parameter as
   follows:



>
> We cannot remove this option from 4.4.x kernel as we do only patch
> releases on top of it.
>
> On Wed, Jul 13, 2016 at 11:42 AM, Pubudu Priyashan 
> wrote:
>
>> +1 to Nuwan's suggestion.
>>
>> I too have experienced inconsistencies in the past while using the
>> -Dsetup when configuring the databases where we still have to manually
>> execute the scripts. Since we are not using this feature in production
>> environments I think it wouldn't hurt to get rid of this all together.
>> Since we can always run the relevant scripts manually, if there is no
>> significant advantage of keeping this feature I think it's a good idea to
>> remove it. Just my personal opinion.
>>
>> Cheers,
>> Pubudu.
>>
>> Pubudu D.P
>> Senior Software Engineer - QA Team | WSO2 inc.
>> Mobile : +94775464547
>>
>> Linkedin: https://uk.linkedin.com/in/pubududp
>> Medium: https://medium.com/@pubududp
>>
>>
>> On Wed, Jul 13, 2016 at 11:35 AM, Nuwan Dias  wrote:
>>
>>> Practically the -Dsetup option is never used in production. All "real"
>>> users of our products have DB admins and all that who carefully evaluate
>>> and execute our DB scripts on their Database servers. They would never
>>> allow a product startup process to create tables and indexes at will on
>>> their database servers.
>>>
>>> So I think we should just remove this option all together. I know we've
>>> done that on C5 but it probably makes sense to remove this option in C4
>>> products as well. We sometimes even have to make design changes to our
>>> features to support this option (when two features have their own DB
>>> scripts). And I think its a complete waste because we're compromising the
>>> design of our products to support a feature thats never used in the real
>>> world.
>>>
>>> Thanks,
>>> NuwanD.
>>>
>>> On Wed, Jul 13, 2016 at 11:05 AM, Pubudu Priyashan 
>>> wrote:
>>>

 Hi all,

 When we use MySql 5.7 as the DB and start the server with -Dsetup
 without manually executing the scripts at DB level, we have observed the
 issue logged at [1] while testing wso2esb-5.0.0-PRE-BETA2-PACK1.zip pack.
 The reason behind this is, by default the pack is picking up mysql.sql
 script located at [$HOME]/dbscripts directory when started with -Dsetup. A
 solution was suggested in this comment [2] to rename the mysql5.7.sql
 scripts as mysql.sql when using MySql 5.7 db and we have verified that this
 suggestion fixed the issue. We have logged a doc JIRA to include that
 information at [3] for now.

 Our concern is since this is going to affect all the products when
 using MySql5.7 do we have a better solution to automatically select the
 mysql version without having to rename the script? Is it possible to add a
 property to define the db version somewhere and then point to the relevant
 script without renaming the script when starting with -Dsetup? Or any
 better solution if possible. Appreciate your feedback on this. Thanks!


 [1] https://wso2.org/jira/browse/ESBJAVA-4748
 [2]
 https://wso2.org/jira/browse/ESBJAVA-4748?focusedCommentId=123463=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-123463
 [3] https://wso2.org/jira/browse/DOCUMENTATION-3604


 Cheers,
 Pubudu D.P
 Senior Software Engineer - QA Team | WSO2 inc.
 Mobile : +94775464547

 Linkedin: https://uk.linkedin.com/in/pubududp
 Medium: https://medium.com/@pubududp


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Nuwan Dias
>>>
>>> Technical Lead - WSO2, Inc. http://wso2.com
>>> email : nuw...@wso2.com
>>> Phone : +94 777 775 729
>>>
>>
>>
>
>
> --
> *Kishanthan Thangarajah*
> Technical Lead,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com *
> Twitter - *http://twitter.com/kishanthan 

Re: [Dev] [MySql5.7] Concern about MySql 5.7 scripts running with -Dsetup

2016-07-22 Thread Kishanthan Thangarajah
"-Dsetup" is a development time option and in production it is not used
mostly. Users manually populate the DB's using relevant scripts by
executing them separately. Due to this fact only, we did not invest time in
supporting mysql 5.7 with "-Dsetup" option. We have documented this also :
https://docs.wso2.com/display/ADMIN447/Setting+up+MySQL

We cannot remove this option from 4.4.x kernel as we do only patch releases
on top of it.

On Wed, Jul 13, 2016 at 11:42 AM, Pubudu Priyashan  wrote:

> +1 to Nuwan's suggestion.
>
> I too have experienced inconsistencies in the past while using the -Dsetup
> when configuring the databases where we still have to manually execute the
> scripts. Since we are not using this feature in production environments I
> think it wouldn't hurt to get rid of this all together. Since we can always
> run the relevant scripts manually, if there is no significant advantage of
> keeping this feature I think it's a good idea to remove it. Just my
> personal opinion.
>
> Cheers,
> Pubudu.
>
> Pubudu D.P
> Senior Software Engineer - QA Team | WSO2 inc.
> Mobile : +94775464547
>
> Linkedin: https://uk.linkedin.com/in/pubududp
> Medium: https://medium.com/@pubududp
>
>
> On Wed, Jul 13, 2016 at 11:35 AM, Nuwan Dias  wrote:
>
>> Practically the -Dsetup option is never used in production. All "real"
>> users of our products have DB admins and all that who carefully evaluate
>> and execute our DB scripts on their Database servers. They would never
>> allow a product startup process to create tables and indexes at will on
>> their database servers.
>>
>> So I think we should just remove this option all together. I know we've
>> done that on C5 but it probably makes sense to remove this option in C4
>> products as well. We sometimes even have to make design changes to our
>> features to support this option (when two features have their own DB
>> scripts). And I think its a complete waste because we're compromising the
>> design of our products to support a feature thats never used in the real
>> world.
>>
>> Thanks,
>> NuwanD.
>>
>> On Wed, Jul 13, 2016 at 11:05 AM, Pubudu Priyashan 
>> wrote:
>>
>>>
>>> Hi all,
>>>
>>> When we use MySql 5.7 as the DB and start the server with -Dsetup
>>> without manually executing the scripts at DB level, we have observed the
>>> issue logged at [1] while testing wso2esb-5.0.0-PRE-BETA2-PACK1.zip pack.
>>> The reason behind this is, by default the pack is picking up mysql.sql
>>> script located at [$HOME]/dbscripts directory when started with -Dsetup. A
>>> solution was suggested in this comment [2] to rename the mysql5.7.sql
>>> scripts as mysql.sql when using MySql 5.7 db and we have verified that this
>>> suggestion fixed the issue. We have logged a doc JIRA to include that
>>> information at [3] for now.
>>>
>>> Our concern is since this is going to affect all the products when using
>>> MySql5.7 do we have a better solution to automatically select the
>>> mysql version without having to rename the script? Is it possible to add a
>>> property to define the db version somewhere and then point to the relevant
>>> script without renaming the script when starting with -Dsetup? Or any
>>> better solution if possible. Appreciate your feedback on this. Thanks!
>>>
>>>
>>> [1] https://wso2.org/jira/browse/ESBJAVA-4748
>>> [2]
>>> https://wso2.org/jira/browse/ESBJAVA-4748?focusedCommentId=123463=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-123463
>>> [3] https://wso2.org/jira/browse/DOCUMENTATION-3604
>>>
>>>
>>> Cheers,
>>> Pubudu D.P
>>> Senior Software Engineer - QA Team | WSO2 inc.
>>> Mobile : +94775464547
>>>
>>> Linkedin: https://uk.linkedin.com/in/pubududp
>>> Medium: https://medium.com/@pubududp
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Nuwan Dias
>>
>> Technical Lead - WSO2, Inc. http://wso2.com
>> email : nuw...@wso2.com
>> Phone : +94 777 775 729
>>
>
>


-- 
*Kishanthan Thangarajah*
Technical Lead,
Platform Technologies Team,
WSO2, Inc.
lean.enterprise.middleware

Mobile - +94773426635
Blog - *http://kishanthan.wordpress.com *
Twitter - *http://twitter.com/kishanthan *
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MySql5.7] Concern about MySql 5.7 scripts running with -Dsetup

2016-07-13 Thread Sewmini Jayaweera
Hi Pubudu,

As per the chat I had with Kalpa he has initially fixed Jira [1] to work
with -Dsetup. As a result of discussion [2] they have reverted the fix.

[1]. https://wso2.org/jira/browse/CARBON-15913
[2]. "WSO2 Carbon Kernel 4.4.6 throws exceptions when rinning Oracle DB
script"

Cheers!

Sewmini Jayaweera
*Software Engineer - QA Team*
Mobile: +94 (0) 773 381 250
sewm...@wso2.com

On Wed, Jul 13, 2016 at 11:49 AM, Sewmini Jayaweera 
wrote:

> Hi Pubudu,
>
> When we tested API manager 1.10.0 - MySQL 5.7 compatibility  for a
> customer issue we fixed the MySQL scripts but we didn't give '-Dsetup'
> functionality support rather delivered the working scripts.
>
> In the current API manager 2.0.0 release, also we have working scripts for
> MySQL 5.7 yet '-Dsetup' support is not there.
>
> As Nuwan said it would be good if we remove the -Dsetup functionality than
> having it only for some of the versions of a database  so that we can gain
> consistency.
>
> Regards,
> Sewmini
>
> Sewmini Jayaweera
> *Software Engineer - QA Team*
> Mobile: +94 (0) 773 381 250
> sewm...@wso2.com
>
> On Wed, Jul 13, 2016 at 11:42 AM, Pubudu Priyashan 
> wrote:
>
>> +1 to Nuwan's suggestion.
>>
>> I too have experienced inconsistencies in the past while using the
>> -Dsetup when configuring the databases where we still have to manually
>> execute the scripts. Since we are not using this feature in production
>> environments I think it wouldn't hurt to get rid of this all together.
>> Since we can always run the relevant scripts manually, if there is no
>> significant advantage of keeping this feature I think it's a good idea to
>> remove it. Just my personal opinion.
>>
>> Cheers,
>> Pubudu.
>>
>> Pubudu D.P
>> Senior Software Engineer - QA Team | WSO2 inc.
>> Mobile : +94775464547
>>
>> Linkedin: https://uk.linkedin.com/in/pubududp
>> Medium: https://medium.com/@pubududp
>>
>>
>> On Wed, Jul 13, 2016 at 11:35 AM, Nuwan Dias  wrote:
>>
>>> Practically the -Dsetup option is never used in production. All "real"
>>> users of our products have DB admins and all that who carefully evaluate
>>> and execute our DB scripts on their Database servers. They would never
>>> allow a product startup process to create tables and indexes at will on
>>> their database servers.
>>>
>>> So I think we should just remove this option all together. I know we've
>>> done that on C5 but it probably makes sense to remove this option in C4
>>> products as well. We sometimes even have to make design changes to our
>>> features to support this option (when two features have their own DB
>>> scripts). And I think its a complete waste because we're compromising the
>>> design of our products to support a feature thats never used in the real
>>> world.
>>>
>>> Thanks,
>>> NuwanD.
>>>
>>> On Wed, Jul 13, 2016 at 11:05 AM, Pubudu Priyashan 
>>> wrote:
>>>

 Hi all,

 When we use MySql 5.7 as the DB and start the server with -Dsetup
 without manually executing the scripts at DB level, we have observed the
 issue logged at [1] while testing wso2esb-5.0.0-PRE-BETA2-PACK1.zip pack.
 The reason behind this is, by default the pack is picking up mysql.sql
 script located at [$HOME]/dbscripts directory when started with -Dsetup. A
 solution was suggested in this comment [2] to rename the mysql5.7.sql
 scripts as mysql.sql when using MySql 5.7 db and we have verified that this
 suggestion fixed the issue. We have logged a doc JIRA to include that
 information at [3] for now.

 Our concern is since this is going to affect all the products when
 using MySql5.7 do we have a better solution to automatically select the
 mysql version without having to rename the script? Is it possible to add a
 property to define the db version somewhere and then point to the relevant
 script without renaming the script when starting with -Dsetup? Or any
 better solution if possible. Appreciate your feedback on this. Thanks!


 [1] https://wso2.org/jira/browse/ESBJAVA-4748
 [2]
 https://wso2.org/jira/browse/ESBJAVA-4748?focusedCommentId=123463=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-123463
 [3] https://wso2.org/jira/browse/DOCUMENTATION-3604


 Cheers,
 Pubudu D.P
 Senior Software Engineer - QA Team | WSO2 inc.
 Mobile : +94775464547

 Linkedin: https://uk.linkedin.com/in/pubududp
 Medium: https://medium.com/@pubududp


 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Nuwan Dias
>>>
>>> Technical Lead - WSO2, Inc. http://wso2.com
>>> email : nuw...@wso2.com
>>> Phone : +94 777 775 729
>>>
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev

Re: [Dev] [MySql5.7] Concern about MySql 5.7 scripts running with -Dsetup

2016-07-13 Thread Sewmini Jayaweera
Hi Pubudu,

When we tested API manager 1.10.0 - MySQL 5.7 compatibility  for a customer
issue we fixed the MySQL scripts but we didn't give '-Dsetup' functionality
support rather delivered the working scripts.

In the current API manager 2.0.0 release, also we have working scripts for
MySQL 5.7 yet '-Dsetup' support is not there.

As Nuwan said it would be good if we remove the -Dsetup functionality than
having it only for some of the versions of a database  so that we can gain
consistency.

Regards,
Sewmini

Sewmini Jayaweera
*Software Engineer - QA Team*
Mobile: +94 (0) 773 381 250
sewm...@wso2.com

On Wed, Jul 13, 2016 at 11:42 AM, Pubudu Priyashan  wrote:

> +1 to Nuwan's suggestion.
>
> I too have experienced inconsistencies in the past while using the -Dsetup
> when configuring the databases where we still have to manually execute the
> scripts. Since we are not using this feature in production environments I
> think it wouldn't hurt to get rid of this all together. Since we can always
> run the relevant scripts manually, if there is no significant advantage of
> keeping this feature I think it's a good idea to remove it. Just my
> personal opinion.
>
> Cheers,
> Pubudu.
>
> Pubudu D.P
> Senior Software Engineer - QA Team | WSO2 inc.
> Mobile : +94775464547
>
> Linkedin: https://uk.linkedin.com/in/pubududp
> Medium: https://medium.com/@pubududp
>
>
> On Wed, Jul 13, 2016 at 11:35 AM, Nuwan Dias  wrote:
>
>> Practically the -Dsetup option is never used in production. All "real"
>> users of our products have DB admins and all that who carefully evaluate
>> and execute our DB scripts on their Database servers. They would never
>> allow a product startup process to create tables and indexes at will on
>> their database servers.
>>
>> So I think we should just remove this option all together. I know we've
>> done that on C5 but it probably makes sense to remove this option in C4
>> products as well. We sometimes even have to make design changes to our
>> features to support this option (when two features have their own DB
>> scripts). And I think its a complete waste because we're compromising the
>> design of our products to support a feature thats never used in the real
>> world.
>>
>> Thanks,
>> NuwanD.
>>
>> On Wed, Jul 13, 2016 at 11:05 AM, Pubudu Priyashan 
>> wrote:
>>
>>>
>>> Hi all,
>>>
>>> When we use MySql 5.7 as the DB and start the server with -Dsetup
>>> without manually executing the scripts at DB level, we have observed the
>>> issue logged at [1] while testing wso2esb-5.0.0-PRE-BETA2-PACK1.zip pack.
>>> The reason behind this is, by default the pack is picking up mysql.sql
>>> script located at [$HOME]/dbscripts directory when started with -Dsetup. A
>>> solution was suggested in this comment [2] to rename the mysql5.7.sql
>>> scripts as mysql.sql when using MySql 5.7 db and we have verified that this
>>> suggestion fixed the issue. We have logged a doc JIRA to include that
>>> information at [3] for now.
>>>
>>> Our concern is since this is going to affect all the products when using
>>> MySql5.7 do we have a better solution to automatically select the
>>> mysql version without having to rename the script? Is it possible to add a
>>> property to define the db version somewhere and then point to the relevant
>>> script without renaming the script when starting with -Dsetup? Or any
>>> better solution if possible. Appreciate your feedback on this. Thanks!
>>>
>>>
>>> [1] https://wso2.org/jira/browse/ESBJAVA-4748
>>> [2]
>>> https://wso2.org/jira/browse/ESBJAVA-4748?focusedCommentId=123463=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-123463
>>> [3] https://wso2.org/jira/browse/DOCUMENTATION-3604
>>>
>>>
>>> Cheers,
>>> Pubudu D.P
>>> Senior Software Engineer - QA Team | WSO2 inc.
>>> Mobile : +94775464547
>>>
>>> Linkedin: https://uk.linkedin.com/in/pubududp
>>> Medium: https://medium.com/@pubududp
>>>
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Nuwan Dias
>>
>> Technical Lead - WSO2, Inc. http://wso2.com
>> email : nuw...@wso2.com
>> Phone : +94 777 775 729
>>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MySql5.7] Concern about MySql 5.7 scripts running with -Dsetup

2016-07-13 Thread Pubudu Priyashan
+1 to Nuwan's suggestion.

I too have experienced inconsistencies in the past while using the -Dsetup
when configuring the databases where we still have to manually execute the
scripts. Since we are not using this feature in production environments I
think it wouldn't hurt to get rid of this all together. Since we can always
run the relevant scripts manually, if there is no significant advantage of
keeping this feature I think it's a good idea to remove it. Just my
personal opinion.

Cheers,
Pubudu.

Pubudu D.P
Senior Software Engineer - QA Team | WSO2 inc.
Mobile : +94775464547

Linkedin: https://uk.linkedin.com/in/pubududp
Medium: https://medium.com/@pubududp


On Wed, Jul 13, 2016 at 11:35 AM, Nuwan Dias  wrote:

> Practically the -Dsetup option is never used in production. All "real"
> users of our products have DB admins and all that who carefully evaluate
> and execute our DB scripts on their Database servers. They would never
> allow a product startup process to create tables and indexes at will on
> their database servers.
>
> So I think we should just remove this option all together. I know we've
> done that on C5 but it probably makes sense to remove this option in C4
> products as well. We sometimes even have to make design changes to our
> features to support this option (when two features have their own DB
> scripts). And I think its a complete waste because we're compromising the
> design of our products to support a feature thats never used in the real
> world.
>
> Thanks,
> NuwanD.
>
> On Wed, Jul 13, 2016 at 11:05 AM, Pubudu Priyashan 
> wrote:
>
>>
>> Hi all,
>>
>> When we use MySql 5.7 as the DB and start the server with -Dsetup without
>> manually executing the scripts at DB level, we have observed the issue
>> logged at [1] while testing wso2esb-5.0.0-PRE-BETA2-PACK1.zip pack. The
>> reason behind this is, by default the pack is picking up mysql.sql script
>> located at [$HOME]/dbscripts directory when started with -Dsetup. A
>> solution was suggested in this comment [2] to rename the mysql5.7.sql
>> scripts as mysql.sql when using MySql 5.7 db and we have verified that this
>> suggestion fixed the issue. We have logged a doc JIRA to include that
>> information at [3] for now.
>>
>> Our concern is since this is going to affect all the products when using
>> MySql5.7 do we have a better solution to automatically select the
>> mysql version without having to rename the script? Is it possible to add a
>> property to define the db version somewhere and then point to the relevant
>> script without renaming the script when starting with -Dsetup? Or any
>> better solution if possible. Appreciate your feedback on this. Thanks!
>>
>>
>> [1] https://wso2.org/jira/browse/ESBJAVA-4748
>> [2]
>> https://wso2.org/jira/browse/ESBJAVA-4748?focusedCommentId=123463=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-123463
>> [3] https://wso2.org/jira/browse/DOCUMENTATION-3604
>>
>>
>> Cheers,
>> Pubudu D.P
>> Senior Software Engineer - QA Team | WSO2 inc.
>> Mobile : +94775464547
>>
>> Linkedin: https://uk.linkedin.com/in/pubududp
>> Medium: https://medium.com/@pubududp
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Nuwan Dias
>
> Technical Lead - WSO2, Inc. http://wso2.com
> email : nuw...@wso2.com
> Phone : +94 777 775 729
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [MySql5.7] Concern about MySql 5.7 scripts running with -Dsetup

2016-07-13 Thread Nuwan Dias
Practically the -Dsetup option is never used in production. All "real"
users of our products have DB admins and all that who carefully evaluate
and execute our DB scripts on their Database servers. They would never
allow a product startup process to create tables and indexes at will on
their database servers.

So I think we should just remove this option all together. I know we've
done that on C5 but it probably makes sense to remove this option in C4
products as well. We sometimes even have to make design changes to our
features to support this option (when two features have their own DB
scripts). And I think its a complete waste because we're compromising the
design of our products to support a feature thats never used in the real
world.

Thanks,
NuwanD.

On Wed, Jul 13, 2016 at 11:05 AM, Pubudu Priyashan  wrote:

>
> Hi all,
>
> When we use MySql 5.7 as the DB and start the server with -Dsetup without
> manually executing the scripts at DB level, we have observed the issue
> logged at [1] while testing wso2esb-5.0.0-PRE-BETA2-PACK1.zip pack. The
> reason behind this is, by default the pack is picking up mysql.sql script
> located at [$HOME]/dbscripts directory when started with -Dsetup. A
> solution was suggested in this comment [2] to rename the mysql5.7.sql
> scripts as mysql.sql when using MySql 5.7 db and we have verified that this
> suggestion fixed the issue. We have logged a doc JIRA to include that
> information at [3] for now.
>
> Our concern is since this is going to affect all the products when using
> MySql5.7 do we have a better solution to automatically select the
> mysql version without having to rename the script? Is it possible to add a
> property to define the db version somewhere and then point to the relevant
> script without renaming the script when starting with -Dsetup? Or any
> better solution if possible. Appreciate your feedback on this. Thanks!
>
>
> [1] https://wso2.org/jira/browse/ESBJAVA-4748
> [2]
> https://wso2.org/jira/browse/ESBJAVA-4748?focusedCommentId=123463=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-123463
> [3] https://wso2.org/jira/browse/DOCUMENTATION-3604
>
>
> Cheers,
> Pubudu D.P
> Senior Software Engineer - QA Team | WSO2 inc.
> Mobile : +94775464547
>
> Linkedin: https://uk.linkedin.com/in/pubududp
> Medium: https://medium.com/@pubududp
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nuwan Dias

Technical Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [MySql5.7] Concern about MySql 5.7 scripts running with -Dsetup

2016-07-12 Thread Pubudu Priyashan
Hi all,

When we use MySql 5.7 as the DB and start the server with -Dsetup without
manually executing the scripts at DB level, we have observed the issue
logged at [1] while testing wso2esb-5.0.0-PRE-BETA2-PACK1.zip pack. The
reason behind this is, by default the pack is picking up mysql.sql script
located at [$HOME]/dbscripts directory when started with -Dsetup. A
solution was suggested in this comment [2] to rename the mysql5.7.sql
scripts as mysql.sql when using MySql 5.7 db and we have verified that this
suggestion fixed the issue. We have logged a doc JIRA to include that
information at [3] for now.

Our concern is since this is going to affect all the products when using
MySql5.7 do we have a better solution to automatically select the
mysql version without having to rename the script? Is it possible to add a
property to define the db version somewhere and then point to the relevant
script without renaming the script when starting with -Dsetup? Or any
better solution if possible. Appreciate your feedback on this. Thanks!


[1] https://wso2.org/jira/browse/ESBJAVA-4748
[2]
https://wso2.org/jira/browse/ESBJAVA-4748?focusedCommentId=123463=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-123463
[3] https://wso2.org/jira/browse/DOCUMENTATION-3604


Cheers,
Pubudu D.P
Senior Software Engineer - QA Team | WSO2 inc.
Mobile : +94775464547

Linkedin: https://uk.linkedin.com/in/pubududp
Medium: https://medium.com/@pubududp
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev