如何使用PHP将MySQL数据库转换为SQLite? [英] How can I convert MySQL database to SQLite using PHP?
本文介绍了如何使用PHP将MySQL数据库转换为SQLite?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hey Folks,
我是PHP的新手。我想使用PHP代码将MYSQL数据库转换为.sqlite。任何人都可以为我提供解决方案吗?
解决方案
这里是一个转换器列表。
我终于找到了它的解决方案。
保存sh文件可用于
https://gist.github.com/943776
并执行
`./mysql2sqlite.sh DBNAME --databases DBNAME -u DB_USERNAME -pDB_PASSWORD | sqlite3数据库。 sqlite`(没有qoutes和`)
php文件中的
。
将这两个文件保存在一个文件夹中
你好每一个,
我试过但是这个剧本也不行。
我也有将这两个文件复制到同一个文件夹中,并在执行PHP文件之后复制一个空白的sqlite文件。
你能否提供另一个更好的方法来执行这个脚本并转换Mysql数据库进入sqlite文件。
谢谢,
Sam
Hey Folks,
I am new to PHP. I want to convert a MYSQL database into .sqlite using PHP code. Can anyone offer me a solutions regarding it?解决方案Here''s a list of converters.
I finally found its solution.
Save sh file available at
https://gist.github.com/943776
and execute
"`./mysql2sqlite.sh DBNAME --databases DBNAME -u DB_USERNAME -pDB_PASSWORD | sqlite3 database.sqlite`"(without qoutes and with "`")
in php file.
Save both files in one folder
Hi Every one,
I have tried but this script was not working as well.
I have also copy the both file in same folder and after executing PHP file than a blank sqlite file.
Could you please provide me another better way to execute this script and convert Mysql database into sqlite file.
Thanks,
Sam
这篇关于如何使用PHP将MySQL数据库转换为SQLite?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文