How to connect opencart with mssql server

你说的曾经没有我的故事 提交于 2019-12-10 22:23:11

问题


Is there any chance of connecting opencart with mssql? Have anyone tried? If so what is the procedure of doing that?


回答1:


That should not be a big problem, You only need to do:

  • create /system/database/mssql.php class - the class should have the same methods, properties and functionality as e.g. the mysql.php one
  • rewrite all of the model classes method's queries to meet the MS SQL / T-SQL SQL syntax
  • in both config files (/config.php and /admin/config.php) set the proper DB_DRIVER - mssql

I am supposing You have the OpenCart database created already due to the /install/opencart.sql file.

I guess nothing more should be done.

Anyway, what is the reason for switching to 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.



来源:https://stackoverflow.com/questions/16558056/how-to-connect-opencart-with-mssql-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!