This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Source: https://tableplus.com/blog/2018/08/mysql-how-to-drop-all-tables.html | |
# | |
# First, disable foreign key check: | |
echo "SET FOREIGN_KEY_CHECKS = 0;" > ./temp.sql | |
# Then dump the db with no data and drop all tables: | |
mysqldump --add-drop-table --no-data -u root -p db_name | grep 'DROP TABLE' >> ./temp.sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This script checks whether given php extensions on the current system exists. | |
* | |
* @author Steve Lenz <[email protected]> | |
*/ | |
/** @var array $extensions List of extensions to be tested */ | |
$extensions = [ |