Skip to content

Commit

Permalink
Update my-sql-import (restore) database.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ttodua authored Jan 22, 2020
1 parent c74700d commit 643d445
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions my-sql-import (restore) database.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
// EXAMPLE: IMPORT_TABLES("localhost","user","pass","db_name", "my_baseeee.sql"); //TABLES WILL BE OVERWRITTEN
// P.S. IMPORTANT NOTE for people who try to change/replace some strings in SQL FILE before importing, MUST READ: https://goo.gl/2fZDQL
// P.S. IMPORTANT NOTE for people who try to change/replace some strings in SQL FILE before importing, MUST READ: https://github.com/ttodua/useful-php-scripts/blob/master/my-sql-export%20(backup)%20database.php

// https://github.com/tazotodua/useful-php-scripts
// https://github.com/ttodua/useful-php-scripts
function IMPORT_TABLES($host,$user,$pass,$dbname, $sql_file_OR_content){
set_time_limit(3000);
$SQL_CONTENT = (strlen($sql_file_OR_content) > 300 ? $sql_file_OR_content : file_get_contents($sql_file_OR_content) );
Expand Down

0 comments on commit 643d445

Please sign in to comment.