今天发现登录TestLink总是不成功,前几天还正常的,很奇怪。提示用户名/密码错误之类的,而且其他人的帐号也同样不能登录。然而,我们都很清楚用户名密码是匹配的。解决问题步骤如下: 1. 试了一下,找回密码功能,发现它提示说我的用户名不存在。 2. 查看了
今天发现登录TestLink总是不成功,前几天还正常的,很奇怪。提示用户名/密码错误之类的,而且其他人的帐号也同样不能登录。然而,我们都很清楚用户名密码是匹配的。解决问题步骤如下:
1. 试了一下,找回密码功能,发现它提示说我的用户名不存在。
2. 查看了MySQL数据中users表,我的用户名是存在的啊。遂怀疑是TestLink连接数据方面的的问题。
3. 查看了 config_db.inc.php 配置文件,发现链接MySQL的用户名/密码/主机名都正常的。
4. logs/userlog3.log 和 log/userlog0.log 文件,发现里面有如下的错误:
Declaration of ADODB_mysql::MetaColumns() should be compatible with that of ADOConnection::MetaColumns() - in /home/testlink/third_party/adodb/drivers/adodb-mysql.inc.php - Line 21
这时TestLink使用的ADODB这个第三方库发生的问题,而且刚好是数据库有关的,所以感觉是今天遇到的问题所在。
看到网上有人曾反馈过这个问题,ADOdb与PHP5.2以上的一个兼容性问题,说是需要使用较新版本的ADOdb即可,所以从 http://adodb.sourceforge.net/#download 下载了最新的ADOdb库替换掉原来的即可。
果然,我是用了ADOdb 5.18 就没有上面的错误信息了,用户也可以正常登录了。
尽管问题解决了,有一点还是没想明白,TestLink都使用了2年了,为啥现在爆出了数据库连接层的问题,有问题应该一开始就不能用啊;最近我们似乎没升级过TestLink和PHP的版本。哎,暂时这样吧~
参考资料:
http://www.teamst.org/forum/viewtopic.php?f=11&t=2333
http://forums.phpfreaks.com/topic/181192-solved-php-openchat-doomed-to-blow-outabandoned/
Original article: 记一下TestLink遇到的连接数据方面的一个问题
©2014 笑遍世界. All Rights Reserved.
原文地址:记一下TestLink遇到的连接数据方面的一个问题, 感谢原作者分享。

mysqlviewshavelimitations:1)他们不使用Supportallsqloperations,限制DatamanipulationThroughViewSwithJoinSorsubqueries.2)他们canimpactperformance,尤其是withcomplexcomplexclexeriesorlargedatasets.3)

porthusermanagementInmysqliscialforenhancingsEcurityAndsingsmenting效率databaseoperation.1)usecReateusertoAddusers,指定connectionsourcewith@'localhost'or@'%'。

mysqldoes notimposeahardlimitontriggers,butacticalfactorsdeterminetheireffactective:1)serverConfiguration impactactStriggerGermanagement; 2)复杂的TriggerSincreaseSySystemsystem load; 3)largertablesslowtriggerperfermance; 4)highConconcConcrencerCancancancancanceTigrignecentign; 5); 5)

Yes,it'ssafetostoreBLOBdatainMySQL,butconsiderthesefactors:1)StorageSpace:BLOBscanconsumesignificantspace,potentiallyincreasingcostsandslowingperformance.2)Performance:LargerrowsizesduetoBLOBsmayslowdownqueries.3)BackupandRecovery:Theseprocessescanbe

通过PHP网页界面添加MySQL用户可以使用MySQLi扩展。步骤如下:1.连接MySQL数据库,使用MySQLi扩展。2.创建用户,使用CREATEUSER语句,并使用PASSWORD()函数加密密码。3.防止SQL注入,使用mysqli_real_escape_string()函数处理用户输入。4.为新用户分配权限,使用GRANT语句。

mysql'sblobissuitableForStoringBinaryDataWithInareLationalDatabase,而alenosqloptionslikemongodb,redis和calablesolutionsoluntionsoluntionsoluntionsolundortionsolunsolunsstructureddata.blobobobsimplobissimplobisslowderperformandperformanceperformancewithlararengelitiate;

toaddauserinmysql,使用:createUser'username'@'host'Indessify'password'; there'showtodoitsecurely:1)choosethehostcarecarefullytocon trolaccess.2)setResourcelimitswithoptionslikemax_queries_per_hour.3)usestrong,iniquepasswords.4)Enforcessl/tlsconnectionswith

toAvoidCommonMistakeswithStringDatatatPesInMysQl,CloseStringTypenuances,chosethirtightType,andManageEngencodingAndCollationsEttingsefectery.1)usecharforfixed lengengters lengengtings,varchar forbariaible lengength,varchariable length,andtext/blobforlabforlargerdata.2 seterters seterters seterters seterters


热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

Video Face Swap
使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热门文章

热工具

Dreamweaver Mac版
视觉化网页开发工具

SublimeText3汉化版
中文版,非常好用

SublimeText3 Linux新版
SublimeText3 Linux最新版

SublimeText3 Mac版
神级代码编辑软件(SublimeText3)

适用于 Eclipse 的 SAP NetWeaver 服务器适配器
将Eclipse与SAP NetWeaver应用服务器集成。