简体   繁体   English

警告:需要加载MySQL扩展才能使OpenCart正常工作

[英]Warning: MySQL extension needs to be loaded for OpenCart to work

I have installed XAMPP on windows. 我已经在Windows上安装了XAMPP。 Apache is running just fine on port 80 and 443, and mysql is also running on 3306. I am installing open cart 1.5 locally but on pre-installation its giving me error "Warning: MySQL extension needs to be loaded for Open Cart to work!" Apache在端口80和443上运行得很好,而mysql在3306上也运行。我正在本地安装Open cart 1.5,但在预安装时,它给我错误消息“警告:需要加载MySQL扩展才能使Open Cart正常工作! ” Mysql current settings is off. Mysql当前设置已关闭。 Every thing looks fine , i have searched a lot but couldn't find any thing. 每件事看起来都不错,我进行了很多搜索,但找不到任何东西。 What should i do? 我该怎么办? My php version is PHP Version 5.5.33 and my open cart version is 1.5.4. 我的php版本是PHP版本5.5.33,打开的购物车版本是1.5.4。

Open file step_2.php under install folder comment the following line 在安装文件夹下打开文件step_2.php,注释以下行

 /*
if (!extension_loaded('mysql')) {
                        $this->error['warning'] = 'Warning: MySQL extension needs to be loaded for OpenCart to work!';
                }*/

On step 3 select MysqlI. 在步骤3中选择MysqlI。 It will work on PHP 7 它将在PHP 7上运行

Note : I know this is not a clean way, But we can use this as hack for 1.5.x versions. 注意:我知道这不是一种干净的方法,但是我们可以将其用作1.5.x版本的hack。

Please open following folder: xampp\\php 请打开以下文件夹:xampp \\ php

and edit php.ini in text editor. 并在文本编辑器中编辑php.ini。 search for extension=php_mysql.dll and then remove ; 搜索extension = php_mysql.dll,然后删除; form beginning of line. 形成行首。 turn off the MySql server and turn on back. 关闭MySql服务器,然后再打开。 you will be good. 你会很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM