zcat /path/to/file.sql.gz | mysql -u 'root' -p your_database
> will write the output of the mysql command on stdout into the file myfile.sql.gz which is most probably not what you want. Additionally, this command will prompt you for the password of the MySQL user “root”.
Related Posts:
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- How do I restore a dump file from mysqldump?
- How do I import an SQL file using the command line in MySQL?
- How do I quickly rename a MySQL database (change schema name)?
- Authentication plugin ‘caching_sha2_password’ cannot be loaded
- Create a new database with MySQL Workbench
- How to get size of mysql database?
- 1052: Column ‘id’ in field list is ambiguous
- 1052: Column ‘id’ in field list is ambiguous
- difference between primary key and unique key
- How to create a foreign key in phpmyadmin
- importing a CSV into phpmyadmin
- How to check if mysql database exists
- Is there a Profiler equivalent for MySql?
- How to do a batch insert in MySQL
- MySQL: Cloning a MySQL database on the same MySql instance
- Error: Duplicate entry ‘0’ for key ‘PRIMARY’
- Data is not constantly loading from custom wordpress table
- Why is my database import losing text widget data?
- What’s a good strategy for planning WordPress DB growth?
- How To Export/Import WordPress (MySQL) Database Properly Via Command-Line?
- importing data from non-wordpress mysql db
- Import 10,000 Users into WordPress WITH a specific ID for each user
- MySQL Syntax Error upon restoring database from backup [closed]
- Error while importing database
- Unknown collation when I import a dump from an existing site into a development database?
- WordPress database import: Row size too large
- Create a form with custom autocomplete address field and CSV import values
- Migration problems with mysql: Operation not allowed when innodb_forced_recovery > 0 [closed]
- phpMyAdmin error #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’
- Exporting completed webiste for another server
- Export SQL query based on custom field?
- latency problems with wordpress install (from SQL import)
- Featured image from custom to WordPress database
- Weird characters displayed when importing WordPress MySQL db
- Importing Concrete5 content to WordPress
- mysqldump to a tar.gz
- After Import: Insert “Use” Statement in Database
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- String concatenation in MySQL
- What’s the difference between INNER JOIN, LEFT JOIN, RIGHT JOIN and FULL JOIN? [duplicate]
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- MySQL server startup error ‘The server quit without updating PID file’
- How do I import an SQL file using the command line in MySQL?
- SQL – Update multiple records in one query
- Column ‘user_id’ in field list is ambiguous
- Database sharding vs partitioning
- Escape string Python for MySQL
- how to overcome ERROR 1045 (28000): Access denied for user ‘ODBC’@’localhost’ (using password: NO) permanently
- SQL ZOO List each continent and the name of the country that comes first alphabetically
- Fatal error: Please read “Security” section of the manual to find out how to run mysqld as root
- ERROR 1044 (42000): Access denied for user ”@’localhost’ to database ‘db’
- How to install Python MySQLdb module using pip?
- Access denied for user ‘root’@’localhost’ (using password: YES) after new installation on Ubuntu
- Dump all tables in CSV format using ‘mysqldump’
- If variable equals value php [duplicate]
- mysqldump data only
- PHP date() format when inserting into datetime in MySQL
- How to fetch Data in WordPress using MySQLi or $wpdb
- Connect to database using wordpress wp-config file
- Get url of product’s images (woocommerce)
- How to properly insert data into custom table via plugin
- How does WordPress handle MySQL row lock errors?
- Alternative to mysql_real_escape_string
- Create Pages from Database
- Huge wp_options table
- Same option_id=0 for 2 options in wp_options?
- How can I call a row of user specific data from a custom table added to the WP Database
- How to let a user choose an authors and save it to the database?
- How to merge local and live databases?
- How to remove ‘GROUP BY’ from SQL query produced from get_posts?
- MySQL LIKE not working
- Is a MySQL DATETIME or TIMESTAMP value retrieved through $wpdb in UTC?
- Emojis getting converted to “?”
- greatest() function returns undefined property
- Join new table with SQL query
- WordPress installation on valet php 8 (PHP Fatal error: Uncaught mysqli_sql_exception Table ‘wp_options’ doesn’t exist in wp-includes/wp-db.php:2056)
- MySQL crashed because of the large number of requests
- wpdb custom post_type problem
- Why doesn’t this code add a table to my database?
- SQL database export-import
- Can Someone Help Me Fix This WordPress Missing Argument Error?
- Create a clone from one WordPress site to another in a few minutes
- Help With MySQL to WPDB Query Conversion
- How do I get create a custom table showing the hours remaining for all customers in one page from this transactions page?
- Uncaught Error: Call to undefined function mysql_connect() – WordPress installation
- How can I save unique user data on my site? [closed]
- Import users from old WP site to new one
- SQL Database, repeated tables?
- Create table from array with prepare
- Visual/Text Editor displays blank pages in WP-Admin- but HTML on client side displays correctly
- Why does the MySQL command line tool ignore the –port parameter?
- Postgres equivalent to MySQL’s \G?
- WordPress database connection failed, while mysql client is working [closed]
- Possible SQL injection. How to locate and fix?
- Can’t insert into a database wordpress
- WordPress cannot detect (present, loaded) mysqli
- Deleting WordPress posts and media files based on author via MYSQL database
- How to sync non-wp database with wp-database?