简体   繁体   English

如何在不连接数据库的情况下运行php应用程序

[英]How to run a php application without connecting to the database

I'm trying to run a PHP application on my local server, I have a dump file for the database. 我正在尝试在本地服务器上运行PHP应用程序,我有数据库的转储文件。 However i am unable to create the database. 但是我无法创建数据库。 I have tried running the application on the local server without configuring the database but I got the error shown in the image below. 我尝试在本地服务器上运行该应用程序而不配置数据库,但是出现下图所示的错误。 I am new to PHP and all an any help would be appreciated. 我是PHP新手,不胜感激。

image url is: 图片网址为:

在此处输入图片说明

PHP as such has no problems running without sql database backend, but that is not necessarily true about PHP applications. 这样的PHP在没有sql数据库后端的情况下运行没有问题,但是对于PHP应用程序来说并不一定是正确的。 The application you are trying to run seems to be tightly dependent on sql database, so you won't be able to run it. 您尝试运行的应用程序似乎紧密依赖sql数据库,因此您将无法运行它。

First, solve your database creation issue, then go back to the PHP application. 首先,解决您的数据库创建问题,然后返回PHP应用程序。

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

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