Upgrade database from liferay 6.2 to 7.0Upgrade database from liferay 6.2 to 7.0https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=856737142024-03-30T07:04:56Z2024-03-30T07:04:56ZRE: Upgrade database from liferay 6.2 to 7.0megan joehttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1179678802019-12-04T06:10:53Z2019-12-04T06:10:53ZVery helpful reply.megan joe2019-12-04T06:10:53ZRE: Upgrade database from liferay 6.2 to 7.0florian totohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=857252142017-02-07T13:58:33Z2017-02-07T13:58:33ZThanks for your reply,<br /><br />I resolved my problem using the post : https://web.liferay.com/fr/community/forums/-/message_boards/message/76256549#_19_message_76582698<br /><br />It was due to a bad encoding of tables in my data base. <br />I also had to configure my database to use utf8 as default encoding.<br /><br />Thanks for your help.florian toto2017-02-07T13:58:33ZRE: Upgrade database from liferay 6.2 to 7.0Milen Dyankovhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=857254302017-02-07T12:42:31Z2017-02-07T12:42:31ZIt seams you have 4 byte unicode character in your database but connection/db/table/column encoding does not support that. <br /><br />Have a look at <a href="http://stackoverflow.com/questions/13653712/java-sql-sqlexception-incorrect-string-value-xf0-x9f-x91-xbd-xf0-x9f">http://stackoverflow.com/questions/13653712/java-sql-sqlexception-incorrect-string-value-xf0-x9f-x91-xbd-xf0-x9f</a> which explains this in quite some details.Milen Dyankov2017-02-07T12:42:31ZUpgrade database from liferay 6.2 to 7.0florian totohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=856737132017-02-06T13:34:54Z2017-02-06T13:34:54ZHi every one<br /><br />I am upgrading my liferay app.<br />It's working in 6.1 and i would like to uprgade to the 7.0 yet I have some issues whyle I run the database process upgrade. <img alt="emoticon" src="@theme_images_path@/emoticons/blink.gif" ><br />(this cmd : java -jar com.liferay.portal.tools.db.upgrade.client.jar )<br /><br />In fact I get some SQL error like these : <br /><br />####### SQL errors<br />####### 1<br />com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.sql.SQLException: Incorrect string value: '\xEC\x84\xB8\xEA\xB3\x84...' for column 'name' at row 3<br /> at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:91)<br /> at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil._upgradeProcess(UpgradeProcessUtil.java:175)<br /> at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:143)<br /> at com.liferay.portal.kernel.upgrade.util.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:125)<br /> at com.liferay.portal.events.StartupHelper.upgradeProcess(StartupHelper.java:164)<br /> at com.liferay.portal.events.StartupHelperUtil.upgradeProcess(StartupHelperUtil.java:81)<br /> at com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:157)<br /> at com.liferay.portal.tools.DBUpgrader.main(DBUpgrader.java:103)<br />Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: java.sql.SQLException: Incorrect string value: '\xEC\x84\xB8\xEA\xB3\x84...' for column 'name' at row 3<br />.......<br />Caused by: java.sql.SQLException: Incorrect string value: '\xEC\x84\xB8\xEA\xB3\x84...' for column 'name' at row 3<br />......<br />####### 2<br />11:16:53,006 ERROR [main][JDBCExceptionReporter:234] Unknown column 'appimpl0_.title' in 'field list'<br />11:16:53,025 ERROR [main][com_liferay_marketplace_service:97] [com.liferay.marketplace.internal.lpkg.deployer.LPKGDeployerRegistrar(1563)] The activate method has thrown an exception<br />com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.SQLGrammarException: could not execute query<br /> at com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl.processException(BasePersistenceImpl.java:267)<br /> at com.liferay.marketplace.service.persistence.impl.AppPersistenceImpl.fetchByRemoteAppId(AppPersistenceImpl.java:1831)<br /> at com.liferay.marketplace.service.persistence.impl.AppPersistenceImpl.fetchByRemoteAppId(AppPersistenceImpl.java:1752)<br /> at com.liferay.marketplace.service.impl.AppLocalServiceImpl.updateApp(AppLocalServiceImpl.java:376)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)<br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br /> at java.lang.reflect.Method.invoke(Method.java:498)<br /> at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)<br /> at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:85)<br /> at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58)<br /> at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)<br /> at com.liferay.portal.spring.aop.RetryAdvice.invoke(RetryAdvice.java:46)<br /> at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)<br /> at com.liferay.portal.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:40)<br /> at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)<br /> at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)<br /> at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)<br /> at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)<br /> at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)<br /> at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)<br /> at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)<br /> at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)<br /> at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)<br /> at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)<br /> at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)<br /> at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)<br /> at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127)<br /> at com.liferay.portal.spring.aop.ChainableMethodAdvice.in<br />Caused by: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.SQLGrammarException: could not execute query<br />.....<br />Caused by: org.hibernate.exception.SQLGrammarException: could not execute query<br />.....<br />Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'appimpl0_.title' in 'field list'<br />.....<br /><br />####### 3<br />11:17:12,066 ERROR [main][com_liferay_portal_upgrade:97] Invocation to listener threw exception<br />java.lang.RuntimeException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update<br />......<br />Caused by: org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update<br /> .......<br />Caused by: java.sql.BatchUpdateException: Incorrect string value: '\xEC\x9B\xB9 \xEB\x82...' for column 'name' at row 1<br />......<br />Caused by: java.sql.SQLException: Incorrect string value: '\xEC\x9B\xB9 \xEB\x82...' for column 'name' at row 1<br />.....<br />####### End SQL Errors<br /><br />The first error message is relying on the table `Group_' . When I delete the line in error the issue disapire, yet I dont want to delete lines in my database ...<br /><br />Plz suggest.<br />