There are advanced and comfortable tools to manage your MySQL databases. For example:
- server side:phpMyAdmin
- client side: SQLyog
But sometimes you can not use those tools and need the ability to execute some SQL script on server by your own hands, easy and fast way. What to do in such situation? Use this PHP code to execute all SQL commands from SQL script text file, one by one: