在mysql中导入数据库时,我遇到以下错误:
1418 (HY000) at line 10185: This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)
我不知道我需要改变哪些事情.任何人都可以帮我解决这个问题吗?
在Ubuntu 10.0.4中设置liferay环境时,我在.bashrc文件中设置了这样的环境变量
PATH=/usr/bin/java/jdk1.7.0_51/bin:$PATH
export PATH
JAVA_HOME=/usr/bin/java/jdk1.7.0_51
export JAVA_HOME
PATH=/usr/bin/ant/bin:$PATH
export PATH
ANT_HOME=/usr/bin/ant
export ANT_HOME
ANT_OPTS="-Xmx1024m -XX:MaxPermSize=256m"
export ANT_OPTS
set path=$path $ANT_HOME/bin
Run Code Online (Sandbox Code Playgroud)
我在我的终端中测试了这样的环境变量:
sudheer@VY-B3:~$ echo $PATH
/usr/bin/ant/bin:/usr/bin/java/jdk1.7.0_51/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
sudheer@VY-B3:~$ echo $JAVA_HOME
/usr/bin/java/jdk1.7.0_51
sudheer@VY-B3:~$ echo $ANT_HOME
/usr/bin/ant
sudheer@VY-B3:~$ echo $ANT_OPTS
-Xmx1024m -XX:MaxPermSize=256m
Run Code Online (Sandbox Code Playgroud)
在为liferay运行build-themes时遇到以下错误:
Buildfile: /home/sudheer/Desktop/Life-ray/Liferay_workspace/portal/portal-web/build.xml
BUILD FAILED
/home/sudheer/Desktop/Life-ray/Liferay_workspace/portal/portal-web/build.xml:4: The following error occurred while executing this line:
/home/sudheer/Desktop/Life-ray/Liferay_workspace/portal/build-common-web.xml:4: The following error occurred while executing this line:
/home/sudheer/Desktop/Life-ray/Liferay_workspace/portal/build-common.xml:393: .
Please set the environment variable ANT_OPTS to the recommended value of
"-Xmx1024m -XX:MaxPermSize=512m".
Total time: 2 …Run Code Online (Sandbox Code Playgroud) 我要求:
您的请求已成功处理
可能吗?有没有办法显示成功或失败的消息?
<%@page import ="javax.portlet.PortletURL" %>
<%@ page import="javax.portlet.RenderResponse" %>
<%@ page import="javax.portlet.ActionRequest" %>
<%@ page import="com.liferay.portal.kernel.util.Validator" %>
<%
PortletURL searchCourseURL=renderResponse.createActionURL();
searchCourseURL.setParameter(ActionRequest.ACTION_NAME,"findCourses");
%>
<script type="text/javascript" src="/html/js/jquery/jquery.js"></script>
<form action="<%=searchCourseURL%>" method="post">
<div class="label1">Enter Course Name</div><input type="text" id="cname" name="cname" value=" "/>
<input type="submit" name="submit" value="Submit"/>
</form>
Run Code Online (Sandbox Code Playgroud)
在上面的示例中,在提交请求后,它显示请求过程成功,而我必须显示消息:
搜索完成
我有两个函数,第一个函数有 ajax 调用,所以我希望在 ajax 调用(这里我正在重新加载页面)完成后执行第二个函数,你能帮我吗?
这里是下面的代码
<div id="exapnd_or_collapse_div" class="exapnd_or_collapse_div" onclick="changeLayout();">
<script>
function changeLayout () {
alert('change layout');
try {
jQuery.ajax({
url:'<%=resourceURL.toString()%>',
dataType: "text",
data:{
<portlet:namespace />cmd:'changeLayout'
},
error: function(){
alert("AJAXError");
},
type: "post",
success: function(data) {
if("success" == data) {
location.reload();
}
}
}).done(function(){
exapndCollapse();
});
} catch(e) {
alert('waiting: ' + e);
}
};
function expandCollapse() {
jQuery("div.Search_Styled-dropDown").css("display", "none");
jQuery("span.menu-text").css("display", "none");
jQuery("ul.Common_ul").css("display", "none");
jQuery("img.module_images").css("width", "25px");
jQuery("img.module_images").css("margin-top", "20px");
jQuery("img.module_images").css("height", "21px");
jQuery("#search_box").css("display", "none");
jQuery("#Escaped_toggle").css("margin-right", "94%");
}
</script>
Run Code Online (Sandbox Code Playgroud) liferay ×3
css ×1
eclipse ×1
html ×1
java ×1
javascript ×1
jquery ×1
liferay-ide ×1
mysql ×1
ubuntu ×1