try
mysql --force < sample_data.sql
Mysql help section says
-f, --force Continue even if we get an sql error.
More Related Contents:
- MySQL – UPDATE query based on SELECT Query
- How to convert an entire MySQL database characterset and collation to UTF-8?
- How to delete from multiple tables in MySQL?
- INSERT with SELECT
- How to get list of dates between two dates in mysql select query [duplicate]
- How can I find non-ASCII characters in MySQL?
- Using variable in a LIMIT clause in MySQL
- Run MySQLDump without Locking Tables
- SQL order string as number
- MySQL: Fastest way to count number of rows
- Find most frequent value in SQL column
- For loop example in MySQL
- How to convert number of week into date?
- Rails 3 ActiveRecord: Order by count on association
- MySQL ENUM type vs join tables
- MySQL – How to SUM times?
- How do I UPDATE a row in a table or INSERT it if it doesn’t exist?
- mysql root password forgotten
- Should I use MySQL blob field type?
- Does MySQL overwrite a column of same value on update?
- How to make join queries using Sequelize on Node.js
- mysql like performance boost
- MySQL selecting yesterday’s date
- Returning records from the last 3 months only in MySQL
- WooCommerce: Finding the products in database
- How to auto-load MySQL on startup on OS X Yosemite / El Capitan
- Mysql performance on 6 million row table
- How can I “select *” from a table in MySQL but omit certain columns?
- MySQL Select Multiple VALUES
- Convert SQL Server query to MySQL [duplicate]