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
  • 写回答

1条回答 默认 最新

  • dscqrkvr9562034621 2017-10-27 06:04
    关注

    You need the php7 packages. php-* currently installs PHP 5.6 extensions, that’s why you get the dependency conflict error

    e.g.

    yum install php70-pdo
    

    The various MySQL extensions are in the package php70-mysqlnd

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 javaweb项目无法正常跳转
  • ¥15 VMBox虚拟机无法访问
  • ¥15 skd显示找不到头文件
  • ¥15 机器视觉中图片中长度与真实长度的关系
  • ¥15 fastreport table 怎么只让每页的最下面和最顶部有横线
  • ¥15 R语言卸载之后无法重装,显示电脑存在下载某些较大二进制文件行为,怎么办
  • ¥15 java 的protected权限 ,问题在注释里
  • ¥15 这个是哪里有问题啊?
  • ¥15 关于#vue.js#的问题:修改用户信息功能图片无法回显,数据库中只存了一张图片(相关搜索:字符串)
  • ¥15 texstudio的问题,