Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Database on delsite #22

Open
itsdarrylnorris opened this issue Dec 16, 2014 · 1 comment
Open

Remove Database on delsite #22

itsdarrylnorris opened this issue Dec 16, 2014 · 1 comment

Comments

@itsdarrylnorris
Copy link
Owner

Problem:

Went we remove a virtual host by typing sudo delete-website this only remove the files and not the database.

Solution:

We need to find away to remove the database that is connected with this virtual host if is necessary.

@itsdarrylnorris
Copy link
Owner Author

Here is a great resource that provide you information about removing database http://stackoverflow.com/questions/1082130/how-to-remove-mysql-database

So this patch is going to looks something similar too:

# Login to the MySQL
mysql -u root -p
# This is going to ask for a MySQL credentials

# Removing the database
 drop schema <database_name>; 
 FLUSH PRIVILEGES; 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant