Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

mysqlimport

Mysql ERROR: ASCII ‘\0’ while importing sql file on linux server

December 30, 2023 by Tarik

Try something like : mysql -u root -p -h localhost -D database –binary-mode -o < dump.sql and make sure your sql file is not zipped.

Categories mysql Tags mysql, mysqlimport, phpmyadmin Leave a comment

How to ignore certain MySQL tables when importing a database?

April 9, 2023 by Tarik

The accepted answer by RandomSeed could take a long time! Importing the table (just to drop it later) could be very wasteful depending on size. For a file created using mysqldump -u user -ppasswd –opt –routines DBname > DBdump.sql I currently get a file about 7GB, 6GB of which is data for a log table … Read more

Categories mysql Tags mysql, mysqlimport Leave a comment

Disabling foreign key checks on the command line

February 27, 2023 by Tarik

You can also use –init-command parameter of mysql command. I.e.: mysql –init-command=”SET SESSION FOREIGN_KEY_CHECKS=0;” … MySQL 5.5 Documentation – mysql options

Categories mysql Tags command-line, foreign-keys, mysql, mysqlimport Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa