Howtos / Articles

Delete a user from a MySQL server

This howto outlines the steps to remove a user from a MySQL server. Run the MySQL client: $ mysql -u root -p You will be asked for a password. If you don’t have a password set, simply press enter when prompted. Run the following command to delete the user: DROP USER ‘usertodelete’@'localhost’; This deletes the user called ‘usertodelete’. Change the user name and host values as required. Flush the privileges to make sure the dropped user has been removed: FLUSH…

Read more [...]

PowerShell Command to Recursively Delete Thumbs.db

The PowerShell command below can be used to remove thumbs.db files from the current folder, and all sub folders. Make sure you change directory ‘cd’ into the folder you want the command to run from. Get-ChildItem -Path . -Include Thumbs.db -Recurse -Name -Force | Remove-Item -Force You can change the ‘-Include’ parameter to any wildcard you like, such as *.tmp or *.bak for example. Get-ChildItem -Path . -Include *.tmp -Recurse -Name -Force | Remove-Item -Force Remove the ‘Remove-Item’ statement to…

Read more [...]