################################################################
# WARNING - DO NOT run this script against a production system #
# with LibData currently installed, since it will destroy an   #
# existing installation!				       #
################################################################

# Drop libdata
DROP DATABASE IF EXISTS libdata;

# Drop libstats
DROP DATABASE IF EXISTS libstats;

# Drop libsession
DROP DATABASE IF EXISTS libsession; 

# Delete users from mysql.user table
DELETE FROM mysql.user WHERE User = 'libdata';
DELETE FROM mysql.user WHERE User = 'libsession';

# Delete database/users from mysql.db table
DELETE FROM mysql.db WHERE Db = 'libdata';
DELETE FROM mysql.db WHERE Db = 'libsession';
