Undoubtedly PHP is the most prominent platform for web development at the moment. Apart from websites, enterprise applications such as ERP, web based open source CRMs for SMEs and e-Commerce solutions are hugely prominent at the moment. There are a lot of people who believe that mySQL is the only database connecting with PHP while others are known to the fact that PHP is supporting other databases as well but they are unaware of the ones. What happens most of the times is that customers are picky as it comes to the database they are keen to have for the implementation. So here we are to help out the PHP developers, web development companies and others making them understand the databases that PHP supports.

毫无疑问,PHP是当前最重要的Web开发平台。 除网站外,企业应用程序(如ERP),面向中小企业的基于Web的开放源CRM和电子商务解决方案目前都非常突出。 很多人认为mySQL是唯一与PHP连接的数据库,而其他人则知道PHP也支持其他数据库,但他们并不知道。 大多数时候发生的事情是,客户对于他们渴望实现的数据库很挑剔。 因此,在这里,我们将帮助PHP开发人员, Web开发公司和其他使他们了解PHP支持的数据库的公司。

Also Read: PHP Frameworks and Libraries That Every Web Developer Must Know About

另请阅读: 每个Web开发人员都必须了解PHP框架和库

PHP Web应用程序的顶级数据库技术

PHP Web应用程序的顶级数据库技术 (Top Database Technologies for PHP Web Applications)

Here we have endeavored to present the databases as decreasing order of use cases with PHP. Thus the most prominent databases feature on the top while the less popular ones are listed further down.

在这里,我们努力以PHP用例的降序显示数据库。 因此,最著名的数据库位于顶部,而较不受欢迎的数据库则位于下方。

MySQL

MySQL

Certainly the most popular database out there for PHP applications is MySQL. It’s prominent open-source database all around the world besides there is the enterprise version of the database also available and it’s the paid one. A lot of popular applications such as SugarCRM, Magento, WordPress and Drupal are using MySQl while it has its customers in Wikipedia, Facebook and Google. With MySQL workbench you get a web based user interface useful in managing the database.

当然,PHP应用程序中最受欢迎的数据库是MySQL。 它是世界上著名的开源数据库,此外还提供企业版数据库,并且是付费数据库。 许多流行的应用程序(例如SugarCRM,Magento,WordPress和Drupal)都在使用MySQl,而它的客户来自Wikipedia,Facebook和Google。 使用MySQL工作台,您将获得基于Web的用户界面,对管理数据库非常有用。

PostGreSQL

PostGreSQL

Launched in 1995, PostGreSQL emphasize on compliance and standards. Comparatively to MySQL, PostGreSQL is feature rich while the database at present is under its release 9.3 compared to release 5.6 of MySQL. With advanced optimization and compression attribute, PostGrey is in the league of Oracle. Most prominent applications that use PostGreSQL are OpenBravo and PostERP among others. Meanwhile, as compared to MySQL, PostGreSQL is a fraction slower.

PostGreSQL成立于1995年,着重于合规性和标准。 与MySQL相比,PostGreSQL具有丰富的功能,而与MySQL 5.6版本相比,当前数据库处于9.3版之下。 凭借高级优化和压缩属性,PostGrey跻身Oracle联盟。 使用PostGreSQL的最杰出的应用程序包括OpenBravo和PostERP。 同时,与MySQL相比,PostGreSQL慢一点。

In case you mostly use Windows and having related infrastructure already, then it’d be advised using MS-SQL. However web developments that use .NET and .ASP technology are going to cost more. This is the reason some customers use PHP getting it connected to MS-SQL. At the same time also keep in mind that it works just for PHP version 5+ only.

如果您主要使用Windows且已经具有相关的基础结构,则建议使用MS-SQL。 但是,使用.NET和.ASP技术的Web开发的成本将更高。 这就是某些客户使用PHP将其连接到MS-SQL的原因。 同时还要记住,它仅适用于PHP 5+版本。

SYBASE

SYBASE

SYBASE was founded in Berkley in 1984 and it’s now in the team of SAP AG. Mostly used by enterprise database management, this solution has proved to be useful in performing under extreme load and suits best when an organization requires a big database. It connects with PHP using sasql_connect() command similar to MySQL.

SYBASE于1984年在伯克利成立,现在隶属于SAP AG。 该解决方案通常用于企业数据库管理,已证明在极端负载下执行非常有用,并且最适合组织需要大型数据库的情况。 它使用类似于MySQL的sasql_connect()命令与PHP连接。

IBM-DB2

IBM-DB2

Established in 1983, IBM-DB2 was highly used in combination with mainframe systems. As of now this database is used in a number of large scale ERP and e-Commerce implementations. In order to connect it with PHP, you require PECL extension.

IBM-DB2成立于1983年,与大型机系统结合使用率很高。 到目前为止,此数据库已用于许多大型ERP和电子商务实施中。 为了将其与PHP连接,您需要PECL扩展名。

Oracle Database

Oracle数据库

Well-established databases of the present times, Oracle database is quite prominent for Windows and Linux based servers. You can’t easily come across enterprises not using this database. In order to connect with PHP applications, you require OCI8 extension. When you have oci_connect function it can be used to connect to the database whereas Function oci_close () is useful in disconnecting the connection.

Oracle数据库在当今建立良好的数据库中,对于基于Windows和Linux的服务器而言非常重要。 您不会轻易遇到没有使用此数据库的企业。 为了与PHP应用程序连接,您需要OCI8扩展。 当您具有oci_connect函数时,它可以用于连接数据库,而函数oci_close()在断开连接时很有用。

Other supported databases

其他支持的数据库

Here we present the other databases that you can connect with PHP. Some are open source while others are proprietary. Gather more information about them on to the homepage. Find below:

在这里,我们介绍了可以与PHP连接的其他数据库。 有些是开源的,有些则是专有的。 在主页上收集有关它们的更多信息。 查找以下内容:

  • Cubrid

    笨拙的

  • DB++

    数据库++

  • dBase

    数据库

  • filePro

    filePro

  • FireBird/InterBase

    FireBird / InterBase

  • FrontBase

    FrontBase

  • Informix

    Informix

  • Ingres

    英格利斯

  • MaxDB

    最大数据库

  • Mongo

    蒙哥

  • mSQL

    SQL

  • Ovrimos SQL

    Ovrimos SQL

  • Paradox

    悖论

  • SQLite

    SQLite的

  • SQLite3

    SQLite3

  • SQLSRV

    SQLSRV

  • Tokyo Tyrant

    东京暴君

PHP programming ideas

PHP编程思想

The best attribute of the adept PHP develops is that they treat database as an external entity ensuring effective working for their application. Here are the best practices to follow:

擅长开发PHP的最好方面是,他们将数据库视为外部实体,从而确保了其应用程序的有效运行。 以下是最佳做法:

  • Lessen the amount of selects written in your PHP program an choose data in single shot and filter with the use of arrays.

    减少用PHP程序编写的选择量,一次选择数据并使用数组进行过滤。

  • Use the fields defining the keys as you select the data.

    选择数据时,请使用定义键的字段。

  • No use of joining more than 3 tables.

    不能使用联接3个以上的表。

  • Only go for fields required for processing rather than using SELECT *.

    仅查找处理所需的字段,而不要使用SELECT *。

  • Don’t go for aggregate functions such as SUM, AVERAGE, and MAX. Use them only in case of no alternate and when database is small.

    不要使用汇总函数,例如SUM,AVERAGE和MAX。 仅在没有替代项且数据库较小的情况下才使用它们。

Conclusion:

结论:

So now as you very well know the number of database options offered by PHP, it’s time to take an informed decision regarding which database you would like to use in your case. We hope this write-up proves to be of great help for you enabling you attain performance optimized deliverables for your client.

因此,现在您已经非常了解PHP提供的数据库选项的数量,是时候就您要在案例中使用哪个数据库做出明智的决定了。 我们希望本文对您有很大帮助,使您能够为客户获得性能优化的可交付成果。

Author Bio:

作者简介:

Jitendra Jain is Marketing and Sales manager at Octal Info Solution, a leading web & mobile app development company, offering platform to hire php developers for your web development project.

Jitendra Jain是领先的Web和移动应用程序开发公司Octal Info Solution的市场和销售经理, 为您的Web开发项目提供了聘用php开发人员的平台。

翻译自: https://www.thecrazyprogrammer.com/2016/06/top-database-technologies-php-web-applications.html

相关文章: