Click here to Skip to main content
15,891,713 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted
Updated 23-Sep-12 23:59pm
v2

Here's a list of converters.
 
Share this answer
 
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
 
Share this answer
 
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
 
Share this answer
 
Comments
AakashGupta 6-Dec-12 5:13am    
What was the error you getting?
try running that stand alone script in terminal.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900