简体   繁体   English

如何将.sql 文件附加到我的 php 应用程序

[英]How to attach .sql file to my php application

I have a php application code and a *.sql file which was running in windows application.我有一个 php 应用程序代码和一个在 windows 应用程序中运行的 *.sql 文件。 I am trying to run this in my ubuntu pc.我正在尝试在我的 ubuntu 电脑上运行它。 I installed xamp in ubuntu and successfully ran the php code.我在ubuntu安装了xamp,成功运行了php代码。 But the code is not running when I move to page which access the database.但是当我移动到访问数据库的页面时代码没有运行。 How do I attach.sql file to my php code in ubuntu?如何将 .sql 文件附加到 ubuntu 中的 php 代码? I am new to php and well as sql.我是 php 和 sql 的新用户。

You need to install MySQL and after you can import the MySQL file .您需要安装MySQL ,然后您可以导入MySQL file

You can follow this link for more instructions.您可以点击此链接获取更多说明。 https://ubuntu.com/server/docs/databases-mysql https://ubuntu.com/server/docs/databases-mysql

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

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