Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

How to import a MySQL Database via the command line

Posted on 10/01/201717/08/2026 Christian By Christian No Comments on How to import a MySQL Database via the command line
  1. Home
  2. Oracle/MSSQL/MySQL
  3. How to import a MySQL Database via the command line
MySQL logo with a dolphin, text 'MySQL Server', and graphic of database stacks on a blue background.

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.

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

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
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

  • How to Fix MS SQL Error 832
    MSSQL Server Error 833: Synthesis of Real-World Case Studies Oracle/MSSQL/MySQL
  • Upgrade the embedded PostgreSQL for Veeam Backup and replication
    How to upgrade PostgreSQL Engine used by VBR Backup
  • postgresql on windows
    Install PostgreSQL on Windows server as Veeam Database Engine Oracle/MSSQL/MySQL
  • SQL EvaluationExpired
    Windows could not start the SQL Server service on local computer 17051: A network-related or instance-specific error occurred while establishing a connection to SQL Server Oracle/MSSQL/MySQL
  • oracle q4 earnings are in e28094 but what does it really mean 700x425 1
    How to uninstall Oracle Database 11G or 12c Oracle/MSSQL/MySQL
  • mssql ubuntu install feature image
    How to reset MSSQL Server SA Password on Ubuntu Oracle/MSSQL/MySQL

More Related Articles

How to Fix MS SQL Error 832 MSSQL Server Error 833: Synthesis of Real-World Case Studies Oracle/MSSQL/MySQL
Upgrade the embedded PostgreSQL for Veeam Backup and replication How to upgrade PostgreSQL Engine used by VBR Backup
postgresql on windows Install PostgreSQL on Windows server as Veeam Database Engine Oracle/MSSQL/MySQL
SQL EvaluationExpired Windows could not start the SQL Server service on local computer 17051: A network-related or instance-specific error occurred while establishing a connection to SQL Server Oracle/MSSQL/MySQL
oracle q4 earnings are in e28094 but what does it really mean 700x425 1 How to uninstall Oracle Database 11G or 12c Oracle/MSSQL/MySQL
mssql ubuntu install feature image How to reset MSSQL Server SA Password on Ubuntu Oracle/MSSQL/MySQL

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

veeaam100

Veeam Vanguard

  • tsx
    Error Code: 0x80070035: MDT unable to access the Log share, the Network Path was not found Windows
  • RDP Certificate Issues
    Connecting to the RDP host: Fix the Certificate could not be verified back to the root certificate Mac
  • Watchguard Firewall 180504 100511 1
    Reset an XTM Firebox Device: Easy Guide Network | Monitoring
  • Featured image 6
    How to remove OneDrive from Windows Microsoft Exchange/Office/365
  • disable automatic updates in Windows
    How to disable automatic Windows updates via Windows Settings Windows
  • create a Lenovo USB Recovery key
    Windows 10 Yoga Recovery: Download the files needed to create a Lenovo USB Recovery key Windows
  • Trellix configurations after ePo setup
    ePO Server Settings: Trellix ePO AD integration and ENS Agents Installation Security | Vulnerability Scans and Assessment
  • Configure Data Deduplication on Windows Server
    Video on how to Configure Data Deduplication on Windows Server Windows Server

Subscribe to Blog via Email

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

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

Tags

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

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.