Mysqldump issue

CCVOIP
CCVOIP used Ask the Experts™
on
I have 3servers where mysql 5.6.15-log MySQL Community Server (GPL) is installed. I am trying to take a dump using mysqldump it doesn't return any error the only output is the following:
-- MySQL dump 10.13  Distrib 5.6.15, for Linux (x86_64)
--
-- Host: localhost    Database: db_name
-- ------------------------------------------------------
-- Server version       5.6.15-log

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2016-04-07 18:52:31

I tried the same mysqldump command on another servers that is set the same way, and it's working just fine.

why is that??
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
What is the complete command you are using?

Author

Commented:
/usr/bin/mysqldump -uuser_name -ppwd --socket=/var/lib/mysql/mysql.sock --port=3306 --skip-lock-tables --single-transaction --flush-logs --hex-blobata=2  --databases db_name
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
I never use all those parameters.  Try something simpler.
/usr/bin/mysqldump -uuser_name -ppwd --databases db_name 

Open in new window

More info:  http://dev.mysql.com/doc/refman/5.6/en/mysqldump.html
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Author

Commented:
it gives the same result!!!!!!!! :(
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
The only thing I can think of is that the db_name doesn't exist.  Or maybe the user_name doesn't have any privileges on that database.

Author

Commented:
it doesn't throw any error. the db name is correct and the user is root that has all the privileges.
Fixer of Problems
Most Valuable Expert 2014
Commented:
'root' does not necessarily have all privileges.  I've seen table / database where 'root' was not one of the privileged users.  I think someone has to remove it for that to happen.  Long shot but I don't know what else to check at this point.

Author

Commented:
that didn't help. still having the same issue. I will uninstall mysql and install it again and see what happens!!
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
Duh... I just realized that that command doesn't send it to a file... without adding the filename at the end.  Like this:
/usr/bin/mysqldump -uuser_name -ppwd --databases db_name > mybackup.sql

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial