I need to transfer data from mysql to mongodb.
And I think use php-cli to write a php program run on command line would be a good way to solve this.
But after I installed php-cli. I found that it didn’t load mysql.so, and I can’t find that in /etc/php5/cgi/php.ini either. Maybe cgi one is made by compile option.
Somebody knows how to setup mysql support for php-cli?