-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem using MySQL #3
Comments
Hi Paul, This portlet was built for the Community Edition, not the Enterprise Edition (the one you are using). Please test it in the Community Edition and if you have exceptions please let us know. Regards, Florencia. |
Hi Florencia, I switched to liferay-portal-6.1.1-ce-ga2, bundled with tomcat and recreated a fresh empty lportal database: drop database lportal;
create database lportal;
grant all on lportal.* to 'liferay'@'localhost' identified by 'liferay'; portal-ext.properies contains: jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=liferay
jdbc.default.password=liferay Unfortunately, the problem remains, with the same exceptions being thrown. Paul |
Hi Paul, Can you manually run what is inside lr-i18n-editor-portlet/docroot/WEB-INF/sql/create/create-mysql.sql ? Regards, Flor. |
Hi Florencia, Thanks for your reply. for tables-mysql.sql: create table editor_MessageSource (
key_ MEDIUMTEXT not null,
locale VARCHAR(75) not null,
value MEDIUMTEXT null,
bundle VARCHAR(75) null,
PRIMARY KEY (key_(255), locale)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; and for indexes-mysql.sql: create index IX_EE40F8CC on editor_MessageSource (bundle);
create index IX_57BC1CAA on editor_MessageSource (key_(767));
create index IX_784255F8 on editor_MessageSource (key_(767), locale);
create index IX_5DE2996E on editor_MessageSource (key_(767), locale, bundle); the deployment works. The charset has to be UTF-8 because some 10 values fail to be inserted for latin1. Regards, |
Hi Paul, The sql files I mentioned are created once you compile with the Liferay IDE. Anyway, I just updated the project in github, you will see those files now. The portlet is supposed to detect the database you are working on and execute the corresponding files. This is Liferay's out-of-the-box functionality. I hope this helps. Regards, Flor. |
Hi Flor, I haven't worked with the Liferay IDE a lot, normally using IDEA and maven to develop plugins. But I'm there now. I did as you suggested and ran the create-mysql.sql. That didn't work (ERROR 1146 (42S02) at line 7: Table 'lportal.editor_messagesource' doesn't exist) and it doesn't surprise me because the create/create-mysql.sql tries to create indexes, not tables. It does almost the same as indexes/indexes-mysql.sql. Paul |
Hi Paul, You are right, my mistake. So, is it working now? Did it import the Language properties files? Regards, Flor. |
Hi Flor, Yes I did build it using Liferay IDE and it produced the same sql files as you provided on GitHub. Only when I run the table creation scripts I posted previously and named accordingly by coincidence, can I deploy the portlet successfully and then it imports the Language properties files like a charm. Best, |
Hi,
When I run liferay-portal-6.1.20-ee-ga2, configured to use MySQL, then when I deploy the
lr-i18n-editor-portlet-6.1.1.1.war
, I get a lot of exceptionsIs this due to some configuration I omitted? I unzipped Liferay and added a
portal-ext.properties
with the database configured. Liferay starts fine.Help is much appreciated
Paul
The text was updated successfully, but these errors were encountered: