PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0
Showing posts with label mysqldump. Show all posts
Showing posts with label mysqldump. Show all posts

Saturday, July 2, 2022

[FIXED] How can I access the MySQL command line with XAMPP for Windows?

 July 02, 2022     mysql, mysqldump, windows, xampp     No comments   

Issue

How can I access the MySQL command line with XAMPP for Windows?


Solution

Your MySQL binaries should be somewhere under your XAMPP folder. Look for a /bin folder, and you'll find the mysql.exe client around. Let's assume it is in c:\xampp\mysql\bin, then you should fireup a command prompt in this folder.

That means, fire up "cmd", and type:

cd c:\xampp\mysql\bin
mysql.exe -u root --password

If you want to use mysqldump.exe, you should also find it there.

Log into your mysql server, and start typing your commands.

Hope it helps...



Answered By - Wadih M.
Answer Checked By - Cary Denson (PHPFixing Admin)
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg

Thursday, March 17, 2022

[FIXED] Mysql ERROR: ASCII '\0' while importing sql file on linux server

 March 17, 2022     mysql, mysqldump, mysqlimport, phpmyadmin     No comments   

Issue

I am getting following error while importing sql file

ERROR: ASCII '\0' appeared in the statement, but this is not allowed unless option --binary-mode is enabled and mysql is run in non-interactive mode. 
Set --binary-mode to 1 if ASCII '\0' is expected. Query: ''.

HELP NEEDED...!!


Solution

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.



Answered By - Eric BELLION
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg

Saturday, March 5, 2022

[FIXED] -bash: mysqldump: command not found MAC OS X

 March 05, 2022     macos, mamp, mysqldump, terminal     No comments   

Issue

I want to export and import a .sql file from MySQL server from to my machine with a command line:

/Applications/MAMP/Library/bin/mysqldump -P 3306 -h server  -u login  -p passwd  database  > db_backup.sql

But I get this error:

-bash: /Applications/MAMP/Library/bin/mysqldump: No such file or directory


Solution

It work well now, I just changed:

/Applications/MAMP/Library/bin/mysqldump

by:

/Applications/MySQLWorkbench.app/Contents/MacOS/mysqldump  


Answered By - Errabbah Tarik
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Older Posts Home

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
All Comments
Atom
All Comments

Copyright © PHPFixing