Delete the mysql database on Linux by executing a shell script. reinitialize the database
- Statement core:
mysql -uusername -ppassword] -e 'drop database db-name;'
- Core statement execution effect
- Script execution
Delete the mysql database on Linux by executing a shell script. reinitialize the database
mysql -uusername -ppassword] -e 'drop database db-name;'