安装testlink时mysql_Testlink安装时,趟过的坑

本文详细记录了安装Testlink过程中遇到的问题及解决方案,包括:1) 修改config.inc.php中logs和upload_area路径;2) 解决php_mysql与现有mysql5.6冲突;3) 处理'You need to proceed with Manual upgrade!'错误,通过执行一系列数据库升级脚本来解决。
摘要由CSDN通过智能技术生成

1、testlink的logs和upload_area目录检查是否存在,失败,如下图:

7e8cd63b93a0fe9dea9475bc2e167d07.png

解决方法:

vi config.inc.php

将$tlcfg->log_path = '/var/testlink/logs/' ;

改成logs文件的所在位置,我的是$tlcfg->log_path = '/var/www/testlink/logs';

将$tlcfg->repositoryPath='/var/testlink/upload_area/' ;

改成upload_area文件的所在位置,我的是 $tlcfg->repositoryPath='/var/www/testlink/upload_area/' ;

如果修改完成之后,显示

logs directory is writable(by user used to run webserver process) failed

upload_area directory is writable(by user used to run webserver process) failed

查看文件夹的权限

ls -ld 文件夹

如果没有的话就修改下权限:

chmod 777 logs

chmod 777 upload_area

如果顺利的话,如果最后一步还是有问题:

TestLink couldn't write the config file. Please copy the following into the ../config_db.inc.php file:

// Automatically Generated by TestLink Installer

define('DB_TYPE', 'mysql');

define('DB_USER', 'testlink');

define('DB_PASS', 'mypassword');

define('DB_HOST', 'localhost');

define('DB_NAME', 'testlink');

define('DB_TABLE_PREFIX', '');

?>

Once that's been done, you can log into TestLink by pointing your browser at your TestLink site.

就在testlink目录下创建config_db.inc.php文件,并拷贝上面提示的信息到php里就可以啦

vi config_db.inc.php

重新打开testlink的地址就可以啦。

转自:https://blog.csdn.net/u010005344/article/details/49763777

2、php_mysql安装时,和现有的mysql5.6冲突

解决方法如下:(注:此方法有可能会解决,因为当时本人操作后,刷新界面无效,又一顿捣鼓后,重新访问了IP/testlink/install/index.php后,又走了遍安装流程,就无需安装php_mysql了,可以直接安装testlink)

打开php安装目录下的php.ini

5d4d4d398c294adb5e640bb7c836f65f.png

大概在730-740行左右 ;extension_dir = “ext”,去掉前面的“;”,并改为

extension_dir =”F:/devloper/php-5.6.30/ext”

原文的内容如下:

3047fec6b12b583320246ceb075d4427.png

修改后内容如下:

5ebd719765e4e0354070bf3a5bdc20d6.png

去掉 ;extension=php_mysql.dll

;extension=php_mysqli.dll 前面的 分号

原文内容如下:

c9c95bd3fe1072957e063f43f27f430b.png

修改后内容如下:

d9c1b93ceff51b3a2ce84cdc015e268b.png

重启Apache服务

26b20218a534b8f8c5e63af2281c8de5.png

在Apache/htdocs目录新建一index.php 内容如下

浏览器访问结果 说明PHP与mysql配置成功

f58821f22bb53b6683cdd008e3e54a3d.png

转自:http://geek.csdn.net/news/detail/200340

3、testlink安装到最后一步时,提示:You need to proceed with Manual upgrade !

解决方法如下:

Install dependencies:

mysql 5.6 (Note that testlink 1.9.16 database requires mysql 5.6 as minimum version)

php 5.6

apache2

Download testlink latest version tar package.

backup production db.

backup production configuration files.

dump database to a new database, say tl1916

Upgrade database:

source /var/www/html/testlink/install/sql/alter_tables/1.9.8/mysql/DB.1.9.8/step1/db_schema_update.sql

source /var/www/html/testlink/install/sql/alter_tables/1.9.8/mysql/DB.1.9.8/stepZ/z_final_step.sql

source /var/www/html/testlink/install/sql/alter_tables/1.9.9/mysql/DB.1.9.9/step1/db_schema_update.sql

source /var/www/html/testlink/install/sql/alter_tables/1.9.9/mysql/DB.1.9.9/stepZ/z_final_step.sql

source /var/www/html/testlink/install/sql/alter_tables/1.9.10/mysql/DB.1.9.10/step1/db_data_update.sql

source /var/www/html/testlink/install/sql/alter_tables/1.9.11/mysql/DB.1.9.11/step1/db_schema_update.sql

source /var/www/html/testlink/install/sql/alter_tables/1.9.11/mysql/DB.1.9.11/stepZ/z_final_step.sql

source /var/www/html/testlink/install/sql/alter_tables/1.9.12/mysql/DB.1.9.12/step1/db_schema_update.sql

source /var/www/html/testlink/install/sql/alter_tables/1.9.12/mysql/DB.1.9.12/stepZ/z_final_step.sql

source /var/www/html/testlink/install/sql/alter_tables/1.9.13/mysql/DB.1.9.13/step1/db_schema_update.sql

source /var/www/html/testlink/install/sql/alter_tables/1.9.13/mysql/DB.1.9.13/stepZ/z_final_step.sql

source /var/www/html/testlink/install/sql/alter_tables/1.9.14/mysql/DB.1.9.14/step1/db_schema_update.sql

source /var/www/html/testlink/install/sql/alter_tables/1.9.14/mysql/DB.1.9.14/stepZ/z_final_step.sql

source /var/www/html/testlink/install/sql/alter_tables/1.9.15/mysql/DB.1.9.15/step1/db_schema_update.sql

source /var/www/html/testlink/install/sql/alter_tables/1.9.15/mysql/DB.1.9.15/stepZ/z_final_step.sql

source /var/www/html/testlink/install/sql/alter_tables/1.9.16/mysql/DB.1.9.16/step1/db_schema_update.sql

source /var/www/html/testlink/install/sql/alter_tables/1.9.16/mysql/DB.1.9.16/stepZ/z_final_step.sql

Explanation of above steps: - Upgrade from 1.9.7 to 1.9.8 WARNING: if you are using a table prefix replace /prefix/ with your prefix a) Execute install/sql/alter_tables/1.9.8//DB.1.9.8/step1/db_schema_update.sql b) Execute install/sql/alter_tables/1.9.8//DB.1.9.8/stepZ/z_final_step.sql

Upgrade from 1.9.8 to 1.9.9 WARNING: if you are using a table prefix replace /prefix/ with your prefix a) Execute install/sql/alter_tables/1.9.9//DB.1.9.9/step1/db_schema_update.sql b) Execute install/sql/alter_tables/1.9.9//DB.1.9.9/stepZ/z_final_step.sql

Upgrade from 1.9.9 to 1.9.10 WARNING: if you are using a table prefix replace /prefix/ with your prefix a) Execute install/sql/alter_tables/1.9.10//DB.1.9.10/step1/db_data_update.sql

Upgrade from 1.9.10 to 1.9.11 WARNING: if you are using a table prefix replace /prefix/ with your prefix a) Execute install/sql/alter_tables/1.9.11//DB.1.9.11/step1/db_schema_update.sql b) Execute install/sql/alter_tables/1.9.11//DB.1.9.11/stepZ/z_final_step.sql

Upgrade from 1.9.11 to 1.9.12 WARNING: if you are using a table prefix replace /prefix/ with your prefix a) Execute install/sql/alter_tables/1.9.12//DB.1.9.12/step1/db_schema_update.sql b) Execute install/sql/alter_tables/1.9.12//DB.1.9.12/stepZ/z_final_step.sql

Upgrade from 1.9.12 to 1.9.13 WARNING: if you are using a table prefix replace /prefix/ with your prefix a) Execute install/sql/alter_tables/1.9.13//DB.1.9.13/step1/db_schema_update.sql b) Execute install/sql/alter_tables/1.9.13//DB.1.9.13/stepZ/z_final_step.sql

Upgrade from 1.9.13 to 1.9.14 WARNING: if you are using a table prefix replace /prefix/ with your prefix a) Execute install/sql/alter_tables/1.9.14//DB.1.9.14/step1/db_schema_update.sql b) Execute install/sql/alter_tables/1.9.14//DB.1.9.14/stepZ/z_final_step.sql

Upgrade from 1.9.14 to 1.9.15 WARNING: if you are using a table prefix replace /prefix/ with your prefix

a) Execute install/sql/alter_tables/1.9.15//DB.1.9.15/step1/db_schema_update.sql

b) Execute (IF EXISTS) install/sql/alter_tables/1.9.15//DB.1.9.15/stepZ/z_final_step.sql

Upgrade from 1.9.15 to 1.9.16 WARNING: if you are using a table prefix replace /prefix/ with your prefix

a) Execute install/sql/alter_tables/1.9.16//DB.1.9.16/step1/db_schema_update.sql

b) Execute (IF EXISTS) install/sql/alter_tables/1.9.16//DB.1.9.16/stepZ/z_final_step.sql

Configure web server. Restore config files: config.inc.php needs to be restored via manual merge. DO NOT COPY THIS FILE FROM OLD VERSION. config_db.inc.php: configure per db setting. custom_config.inc.php: Copy from production instance.

转自:https://stackoverflow.com/questions/39621019/testlink-upgrade-got-issue-you-need-to-proceed-with-manual-upgrade-of-your-db-s

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值