Skip to content

Instantly share code, notes, and snippets.

@DurandA
Created November 23, 2021 08:56
Show Gist options
  • Save DurandA/3bedbb5351c0239ad9caa1a546fb1c8f to your computer and use it in GitHub Desktop.
Save DurandA/3bedbb5351c0239ad9caa1a546fb1c8f to your computer and use it in GitHub Desktop.
Import dump using MariaDB
  1. Create database and user
create database my_database;
create user 'myUser'@'localhost' identified by 'myPassword';
GRANT ALL PRIVILEGES ON my_database.* TO 'myUser'@'localhost';
  1. Import dump
mysql -u myUser -p my_database < dump.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment