Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Useful Commands
(view source)
Revision as of 21:11, 18 January 2014
433 bytes added
,
21:11, 18 January 2014
→Delete a database
Line 347:
Line 347:
exit
exit
−
===
Delete
a database===
+
===
Remove
a database===
−
When you want
to
erase a mysql database
+
Get access
to
the SME Server shell and MySQL and issue the following command:
−
drop database database
-name
;
+
+
drop database
databasename;
+
+
Replace databasename with the name of the
database
.
+
===Remove a user===
+
Get access to the SME Server shell and MySQL and issue the following command:
+
+
USE mysql;
+
DELETE FROM user WHERE user = 'username';
+
FLUSH PRIVILEGES
;
+
+
Replace username with the username you wish to delete.
+
+
{{Tip box|mysql_setpermission is a command line menu driven utility that can assist in MySQL administration.}}
+
===Other useful MySQL commands:===
===Other useful MySQL commands:===
show databases;
show databases;
Stephdl
Administrators
5,576
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version