如何使用PHP转换mysql到SQLite [英] How to convert mysql to SQLite using PHP

查看:116
本文介绍了如何使用PHP转换mysql到SQLite的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在mysql服务器上有一个数据库。我想把它转换为sqlite3数据库,而不使用shell或perl脚本。我想要一些帮助转换相同使用PHP。

I have a database on mysql server. I want to convert that to sqlite3 database without using shell or perl scripts. I want some help converting the same using PHP. Any Help would be appreciated.

推荐答案

根据数据库,您应该轻松创建一个mysql转储创建和插入),然后在sqlite中运行它。
你可能需要改变表创建语句,因为每个引擎使用不同的列数据类型。

Depending on the the database, you should easily create a mysql dump (in the form of SQL creates and inserts) and then run it in sqlite. You'll probably need to change the table creation statements though, because of different column datatypes used by each engine.

这篇关于如何使用PHP转换mysql到SQLite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆