Convert MySQL to MySQLi

Awesome tool for converting your MySQL scripts to MySQLi!
https://github.com/philip/MySQLConverterTool

In Terminal
### Use CLI
Download as you did above, and here is an example to convert a file named `/tmp/my.php`
```
$ cd MySQLConverterTool-master
$ php cli.php -f /tmp/my.php
```
Execute `php cli.php -h` to see the available options.

###
iMac:~ user$ cd desktop
iMac:desktop user$ /Users/user/Desktop/MySQLConverterTool-master
iMac:MySQLConverterTool-master user$ php cli.php -f /Users/boMySQLConverterTool-master/tmp/example.php

Then copy the terminal output and paste over the old file.

Leave a Reply

Your email address will not be published. Required fields are marked *