风火家人开发记要

技术总结精华贴

Author: chenxue4076

Mysql, 原创,

多次安装wamp后Mysql无法启动解决方案Not first time to install wamp, Mysql cannot be started

如果不是首次安装wamp或着mysql,可能会遇到安装后无法启动的问题。我是由于升级wamp,升级后无法启动mysql服务。 下面是我的解决方法: 1.准备升级网站的时候首先备份mysql,如果因为安装mysql的路径不同,可能会导致mysql的数据无法使用,这个一定要先做。 2.卸载旧版的wamp或者mysql。(尝试安装新版wamp看是否成功,一般是mysql无法启动了)。 4.下面的方法是关键:删除mysql注册表 msyql安装到最后一步start service错误解决方法 1,到控制面板里面先把MySQL删除. 2.到c盘C:\Program Files目录下把MySQL目录删除. 3.如果在其他盘还有设置目录也要删除.空目录也要删除 4.到regedit把注册表 1. HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Eventlog/Applications/MySQL 2. HKEY_LOCAL_MACHINE/SYSTEM/ControlSet002/Services/Eventlog/Applications/MySQL 3. HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Eventlog/Applications/MySQL 有的话,全部删除! (技巧:用F3循环查找“MySQL”) 5.如果任务管理器里有关MySQL内容也删除 通过上面的步骤一般都可以正常安装和启动mysql了。希望能对你有所帮助。If you are not the first time to install wamp or mysql,you may come across this problem,mysql unable to start up. I wanted to update wamp to the latest, and found that mysql server cannot be stated. This is my resolvent: 1.If you want to update your wamp or mysql ,you need first to backup mysql data first,or you may find some of data in database cannot be use. 2.uninstall older wamp or mysql.(you can try to install wamp to see it wether success or not.) 3.this below is the most impotent:delete mysql register mysql server cannot be start 1)  to Control Panel to delete Mysql 2) delete Mysql File in c:\Program Files 3) If there are  Mysql Files On Other disk,alse delete 4). Start->cmd->regedit  delete these (1). HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Eventlog/Applications/MySQL (2). HKEY_LOCAL_MACHINE/SYSTEM/ControlSet002/Services/Eventlog/Applications/MySQL (3). HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Eventlog/Applications/MySQL you can use F3 to find MySQL 5.If there is mysql in Task Manager,alse delete. Use this,you can install now,hope it can help you. (1124)

查看全文
CMS, 原创

使用kayako 4.0 创建 模块出现 SWIFT_Module::RetrieveSetupDatabaseObjectUse Kayako 4.0 to create modules shows SWIFT_Module::RetrieveSetupDatabaseObject

[User Error]: #0 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/modules/core/admin/class.Controller_Module.php(181): SWIFT_Module::RetrieveSetupDatabaseObject(‘customer’) #1 [internal function]: Controller_Module->Install(‘customer’) #2 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/library/MVC/class.SWIFT_Controller.php(335): call_user_func_array(Array, Array) #3 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/library/Module/class.SWIFT_Module.php(164): SWIFT_Controller::Load(Object(SWIFT_Interface), Object(SWIFT_Module), Object(SWIFT_Router), false) #4 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/library/class.SWIFT.php(765): SWIFT_Module->ExecuteController() #5 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/library/class.SWIFT.php(919): SWIFT->Initialize() #6 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/swift.php(154): SWIFT::GetInstance() #7 /home/daniel/customer.topcmm.com/htdocs/helpdesk/admin/index.php(28): require_once(‘/home/daniel/cu…’) #8 {main} Invalid data provided (library/class.SWIFT.php:768) 出现这个问题是因为 文件名不能出现大写,如下例子 如果你的配置文件名是这样的 class.SWIFT_SetupDatabase_Customer.php 就会出现这个错误,将此文件名称改为 class.SWIFT_SetupDatabase_customer.php 就是将Customer -> customer 这样这个错误就消失了. 不知道对你们有没有帮助呢 [User Error]: #0 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/modules/core/admin/class.Controller_Module.php(181): SWIFT_Module::RetrieveSetupDatabaseObject(‘customer’) #1 [internal function]: Controller_Module->Install(‘customer’) #2 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/library/MVC/class.SWIFT_Controller.php(335): call_user_func_array(Array, Array) #3 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/library/Module/class.SWIFT_Module.php(164): SWIFT_Controller::Load(Object(SWIFT_Interface), Object(SWIFT_Module), Object(SWIFT_Router), false) #4 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/library/class.SWIFT.php(765): SWIFT_Module->ExecuteController() #5 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/library/class.SWIFT.php(919): SWIFT->Initialize() #6 /home/daniel/customer.topcmm.com/htdocs/helpdesk/__swift/swift.php(154): SWIFT::GetInstance() #7 /home/daniel/customer.topcmm.com/htdocs/helpdesk/admin/index.php(28): require_once(‘/home/daniel/cu…’) #8 {main} Invalid data provided (library/class.SWIFT.php:768) This problem occurs because the File name should not write by uppercase,For Example If your file name is  class.SWIFT_SetupDatabase_Customer.php ,it occurs,Change name to  class.SWIFT_SetupDatabase_customer.php ,It would be OK. just change Customer to customer ,problem disappear.Does it help you? (2481)

查看全文
CMS, 原创,

ixwebhosting安装shopex在ready页面停止出现500 Internal server errorixwebhosting install shopex stop at ready page shows 500 Internal server error

我看到网上很多人在使用shopex安装商城时出现在step=ready时停止,我也遇到了这个问题,查看状态是看到500 Internal server error . 先说说在ixwebhosting提供的主机上解决方法, 使用tools中的 File Manager 进入 文件管理页面,点击页面底部的 WGET, 在上面选择文件的放置路径,下面输入 shopex 的真实下载地址, 点击get, 就可以把shopex直接下载到网站上,在点击这个压缩文件,右边使用解压缩,使用这种方式将shopex的代码放置在网站上, 在进入安装步骤 就可以成功了,我是这样安装成功的, 在说说使用ftp上传的方式吧,只能是猜想,可能是因为上传编码的问题,你是不是使用的二进制上传的呢,如果是的,我也希望了解你们是如何安装成功的,留下你的方法吧。I saw a lot of people cannot install successful and stop at “strp=ready” page, when to install shopex. I have this problem too, and it shows 500 Internal server error . when debug it. let me show you the solution on ixwebhosting: use “tools” -> File Manager ,click WGET on the buttom of page,and select a path to store shopex zip file. and input the real path of shopex,and click get. and it will download shopex to your web site. unzip it. and install step by step,it will be installed successfull. If you use ftp to upload shopex file, I suggest you upload it by ASCII . Holp it can help you.   (4521)

查看全文
html & html5, 原创

javascript(js)定义二维(多维)数组 在静态页面html(htm)中的数据设置与使用Javascript(js) Define Two-dimensional(Multi-dimensional) Array Set and Use On html(htm) Page

有的时候我们做静态页面需要设置数据,但又希望能够简单配置就可以,这个时候使用js数组来实现数据保存是最容易的事情了,下面简单举个例子来说明解决方法。 js 二维数组代码 var datalist = array(); datalist[0] = array(‘这里是数据1标题’,’这里是数据1的内容’,’数据1的作者’); datalist[1] = array(‘这里是数据2标题’,’这里是数据2的内容’,’数据2的作者’); 使用的时候可以直接使用 datalist[0][0]这样,也可以设置循环 使用js实现循环 var datanum = datalist.length; for(var i=0;i<datanum;i++){ document.write(‘ 标题:’+datalist[i][0]+’; 数据:’+datalist[i][1]+’;作者:’+datalist[i][2]+’ ‘); } 上面的数组是经过验证正确的使用方法 . 今天新增一个以对象方式添加的js 数组。看下面例子 var flashList = [ {“id”: 1, “showName”: “Publish Chat”, “flashName”: “videos/publish-chat.swf”, “pictureName”: “publish-chat-bg”}, {“id”: 2, “showName”: “General Features”, “flashName”: “videos/main-feature.swf”, “pictureName”: “features-bg”}, ]; for(var id in flashList) { alert(flashList[id].id); alert(flashList[id].showName); } 后面的这种方式 是我推荐使用的方式,没办法,工作需要。原文转至这里。 Sometimes we need set data on html page ,and hope it simple, use js is the simplest way. look this. js Two-dimensional array code var datalist = array(); datalist[0] = array(‘title 1′,’data 1′,’author 1’); datalist[1] = array(‘title 2′,’data 2′,’author 2’); you can use  datalist[0][0] ,and alse use a loop use js to loop var datanum = datalist.length; for(var i=0;i<datanum;i++){ document.write(‘ Title:’+datalist[i][0]+’; Data:’+datalist[i][1]+’; Author:’+datalist[i][2]+’ ‘); } it validate right to use. Another way to add js array as an Object. Look this. var flashList = [ {“id”: 1, “showName”: “Publish Chat”, “flashName”: “videos/publish-chat.swf”, “pictureName”: “publish-chat-bg”}, {“id”: 2, “showName”: “General Features”, “flashName”: “videos/main-feature.swf”, “pictureName”: “features-bg”}, ]; for(var id in flashList) { alert(flashList[id].id); alert(flashList[id].showName); } This way I suggest everyone to use. However Work needs. Text has been transferred to here. (664)

查看全文
CMS, 原创

codeigniter(CI)刷新页面新增空session数据解决方案codeigniter(CI) refurbish page new session data added resolvent

使用codeigniter(CI)开发网站,使用自带session时会出现写seesion失败,但数据库中添加空session,每次刷新页面都会新增。 这个问题产生是由于手册给到的帮助信息中创建session表的时候有个字段的长度不够造成的,只要修改这个长度就可以了, CREATE TABLE IF NOT EXISTS `ci_sessions` ( session_id varchar(40) DEFAULT ‘0’ NOT NULL, ip_address varchar(16) DEFAULT ‘0’ NOT NULL, user_agent varchar(50) NOT NULL, last_activity int(10) unsigned DEFAULT 0 NOT NULL, user_data text DEFAULT ” NOT NULL, PRIMARY KEY (session_id) ); 将user_agent varchar(50) NOT NULL,的字段长度改到255吧,50太少了,查看网站上,他至少也是60多个字符。use codeigniter(CI)to develop website, session writed failed,and session table of database be added empty session,every time you refurbish page. this is because you use the example of handbook about session,you need to change something. CREATE TABLE IF NOT EXISTS `ci_sessions` ( session_id varchar(40) DEFAULT ‘0’ NOT NULL, ip_address varchar(16) DEFAULT ‘0’ NOT NULL, user_agent varchar(50) NOT NULL, last_activity int(10) unsigned DEFAULT 0 NOT NULL, user_data text DEFAULT ” NOT NULL, PRIMARY KEY (session_id) ); change 50 to 255 in this string : user_agent varchar(50) NOT NULL.Hope it can help you. (1348)

查看全文