[英]How to connect opencart with mssql server
Is there any chance of connecting opencart with mssql? 有可能将opencart与mssql连接吗? Have anyone tried? 有人尝试过吗? If so what is the procedure of doing that? 如果是的话,该怎么办?
That should not be a big problem, You only need to do: 那应该不是什么大问题,您只需要做:
/system/database/mssql.php
class - the class should have the same methods, properties and functionality as eg the mysql.php
one 创建/system/database/mssql.php
类-类应具有相同的方法,属性和功能,例如mysql.php
一个 MS SQL
/ T-SQL
SQL syntax 重写所有模型类方法的查询,以满足MS SQL
/ T-SQL
SQL语法 /config.php
and /admin/config.php
) set the proper DB_DRIVER
- mssql
在两个配置文件( /config.php
和/admin/config.php
)中,设置适当的DB_DRIVER
- mssql
I am supposing You have the OpenCart database created already due to the /install/opencart.sql
file. 我想您已经由于/install/opencart.sql
文件而创建了OpenCart数据库。
I guess nothing more should be done. 我想什么也不要做。
Anyway, what is the reason for switching to MS SQL? 无论如何,切换到MS SQL的原因是什么?
EDIT : In /system/database/
there is this mmsql.php
file which actually contains the MSSQL
class thus this do not have to be implemented, just renamed to mssql.php
file. 编辑 : /system/database/
有一个mmsql.php
文件,它实际上包含MSSQL
类,因此不必实现,只需将其重命名为mssql.php
文件即可。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.