Michael Svanström
  • About
  • Contact
  • Categories
    • azure
    • development
    • devops
    • display
    • home-assistant
    • iptv
    • javascript
    • linux
    • nextauth
    • nextjs
    • node
    • node-js
    • ole
    • photography
    • politics
    • python
    • raspberry-pi
    • salesforce
    • uncategorized
    • video
    • woocommerce
    • wordpress

Restoring a single database from a MySQL dump

Monday, February 21, 2011 Linux linux, mysql, mysqldump

If you, like me, happen to end up with a mysqldump –all-databases dump file and need to restore a single database, here’s how (replace Target with your database name):

Adding vhosts to Apache, the scripted way

Tuesday, May 25, 2010 Linux apache, debian, linux, ubuntu

This script adds a directory in /var/www and a vhost file in /etc/apache2/sites-available. Tested on Debian and Ubuntu.