Hey, whats up! I am working to developed a base structure for one of my SAAS application and the scenario is we need to seed good amount of data wither through Laravel seeded or from sql dump file. So, I want to do it with both - I want to run the SQL dump file … Continue reading Run raw insert query or SQL file in Laravel seeder
If you are working on a BIG project with lots of tables in the database, then it will be a good trick query for you to find out a column name of any table from that database. My scenario was a bit different, I had to start work in the middle of a project … Continue reading How to find a column or filed name of a table from an entire database?
There are advanced and comfortable tools to manage your MySQL databases (i.e. 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 … Continue reading PHP code to execute MySQL script