Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Oracle/MSSQL/MySQL » How to import a MySQL Database via the command line
  • How to configure Volume Shadow Copies VSS on Windows Server
    Volume Shadow Copies: How to configure VSS on Windows Server Windows
  • Windows BootProcess
    Measured Boot, Secure Boot, Trusted Boot, and Early Launch Anti-Malware: How to secure the Windows 10 boot process Security | Vulnerability Scans and Assessment
  • extend proxmox local container instance
    How to extend Proxmox Local Container Storage Virtualization
  • powershell01
    How to create a KDS root key using PowerShell Scripts
  • image001
    Fix Certificate Error: Unable to access Windows Admin Center from the Web Windows Server
  • a Multiple SPF Records  Issues and Examples@2x
    How to setup SPF and TXT Records in AWS AWS/Azure/OpenShift
  • Windows Hello with fake fingerprints
    Security researchers bypass Windows Hello with fake fingerprints with Raspberry Pi 4 Security | Vulnerability Scans and Assessment
  • Windows10 as a Service Waas
    Windows 10 Feature and Quality Updates Windows

How to import a MySQL Database via the command line

Posted on 10/01/201725/03/2024 Christian By Christian No Comments on How to import a MySQL Database via the command line

MySQL Database (Db) is a fully-managed database service that runs on a Local Server and on the Web. It is ideal for both small and large applications and it uses the standard SQL language. In this article, you will learn how to import a MySQL Database via the command line. Please see How to install PostgreSQL on Ubuntu, How to access MySQL Server from command Prompt, and How to delete a MySQL User Account.

MySQL is free to download and use and has the most comprehensive set of advanced features, management tools, and technical support to achieve the highest levels of MySQL scalability, security, reliability, and uptime. The data in a MySQL database are stored in tables.

See the following guide on MySQL, how to reset Mysql Root password, how to access MySQL Server from command Prompt, and how to migrate Veeam MsSQL Database to a new MsSQL Server.

Import a MySQL Database

root@Plxxrx:~#
root@Plxxrx:~# mysql -u root -p -h localhost cxxp_cxxtao < /var/www/pplxxx.ixxx/mysqlnewdump.sql

 or

#mysql -u database_user_name -p my_db < /home/username/my_db_backup.sql

More info: Here it should be almost the same as the export. Also, here is a guide on Standalone Veeam ONE installation: How to set up Veeam ONE 11 Server.

#mysql -u database_user_name -p my_db < /home/kudda/my_db_backup.sql.  

Here it is the same as export. After u- you put your database user name and the -p is used for the password option still. See an example of it.

Example: mysql -u root -p my_db < /home/usename/my_db_backup.sql

Here are some related Veeam guides: Fix critical Veeam Backup and Replication 9.5, 10, and 11 vulnerabilities, Veeam Certified Architect: A review of the VMCA Training & Certification, and how to setup Veeam Backup for Microsoft Azure [Part 1].

I hope you found this blog post helpful on How to import a MySQL Database via the command line. If you have any questions, please let me know in the comment session.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Oracle/MSSQL/MySQL Tags:MySQL, MySQL database

Post navigation

Previous Post: How to mount a USB Drive in Linux
Next Post: Install Minimal Container Templates on Proxmox Server

Related Posts

  • check and assign privileges to a MySQL User
    How to check and assign privileges to a MySQL User Oracle/MSSQL/MySQL
  • image 10
    How to use Microsoft SQL Server Management Studio to Export and Import your MsSQL database from Azure to local computer AWS/Azure/OpenShift
  • Encryption
    How to encrypt Microsoft SQL Server Traffic Oracle/MSSQL/MySQL
  • create a new Azure SQL Database
    How to create a new Azure SQL Database [PaaS] AWS/Azure/OpenShift
  • image 19
    Download your MySQL database from Azure to a local PC with MySQL Workbench AWS/Azure/OpenShift
  • SQL
    How to install Microsoft SQL Server Management Studio Oracle/MSSQL/MySQL

More Related Articles

check and assign privileges to a MySQL User How to check and assign privileges to a MySQL User Oracle/MSSQL/MySQL
image 10 How to use Microsoft SQL Server Management Studio to Export and Import your MsSQL database from Azure to local computer AWS/Azure/OpenShift
Encryption How to encrypt Microsoft SQL Server Traffic Oracle/MSSQL/MySQL
create a new Azure SQL Database How to create a new Azure SQL Database [PaaS] AWS/Azure/OpenShift
image 19 Download your MySQL database from Azure to a local PC with MySQL Workbench AWS/Azure/OpenShift
SQL How to install Microsoft SQL Server Management Studio Oracle/MSSQL/MySQL

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • How to configure Volume Shadow Copies VSS on Windows Server
    Volume Shadow Copies: How to configure VSS on Windows Server Windows
  • Windows BootProcess
    Measured Boot, Secure Boot, Trusted Boot, and Early Launch Anti-Malware: How to secure the Windows 10 boot process Security | Vulnerability Scans and Assessment
  • extend proxmox local container instance
    How to extend Proxmox Local Container Storage Virtualization
  • powershell01
    How to create a KDS root key using PowerShell Scripts
  • image001
    Fix Certificate Error: Unable to access Windows Admin Center from the Web Windows Server
  • a Multiple SPF Records  Issues and Examples@2x
    How to setup SPF and TXT Records in AWS AWS/Azure/OpenShift
  • Windows Hello with fake fingerprints
    Security researchers bypass Windows Hello with fake fingerprints with Raspberry Pi 4 Security | Vulnerability Scans and Assessment
  • Windows10 as a Service Waas
    Windows 10 Feature and Quality Updates Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,839 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.