dongyou8701
2017-10-27 05:54
浏览 43
已采纳

Amazon EC2:如何启用MySQL和SQLITe

The EC2 instance I have been given has php7 installed but without mysql and sqlite3 modules thus unable to use.

I tried sudo yum install php-pdo but it gave error:

amzn-main                                                | 2.1 kB     00:00     
amzn-updates                                             | 2.5 kB     00:00     
Resolving Dependencies
--> Running transaction check
---> Package php-pdo.x86_64 0:5.3.29-1.8.amzn1 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.29-1.8.amzn1 for package: php-pdo-5.3.29-1.8.amzn1.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.3.29-1.8.amzn1 will be installed
--> Processing Conflict: php70-common-7.0.21-1.24.amzn1.x86_64 conflicts php-common < 5.5.22-1.98

图片转代码服务由CSDN问答提供 功能建议

我给出的EC2实例安装了php7但没有 mysql </ code>和 因此无法使用sqlite3 </ code>模块。</ p>

我尝试了 sudo yum install php-pdo </ code>,但它给出了错误:</ p>

  amzn-main |  2.1 kB 00:00 
amzn-updates |  2.5 kB 00:00 
Resolving Dependencies 
  - &gt; 运行事务检查
 ---&gt; 软件包php-pdo.x86_64 0:5.3.29-1.8.amzn1将被安装
  - &gt; 处理依赖性:php-common(x86-64)= 5.3.29-1.8.amzn1 for package:php-pdo-5.3.29-1.8.amzn1.x86_64 
  - &gt; 运行事务检查
 ---&gt; 软件包php-common.x86_64 0:5.3.29-1.8.amzn1将被安装
  - &gt; 处理冲突:php70-common-7.0.21-1.24.amzn1.x86_64冲突php-common&lt;  5.5.22-1.98 
 </ code> </ pre> 
 </ div>

1条回答 默认 最新

相关推荐 更多相似问题