Solved

Mysqldump error

Posted on 2009-07-06
11
804 Views
Last Modified: 2012-08-14
I am facing error while taking backup of maysql database
F:\mysqlbackup\july09>mysqldump -u root -p --all-databases > bug_all06july09.sql

Enter password: ****
mysqldump: Couldn't execute 'SHOW TRIGGERS LIKE 'priority'': Can't create/write
to file 'C:\WINDOWS\TEMP\#sql_84c_0.MYI' (Errcode: 17) (1)
0
Comment
Question by:tomar_10
  • 4
  • 4
11 Comments
 
LVL 33

Expert Comment

by:snoyes_jw
ID: 24786401
perror 17 says 'File exists' - looks like something didn't get cleaned up before. Empty the C:\Windows\Temp folder and try it again.
0
 

Author Comment

by:tomar_10
ID: 24794546
i have tried but did not get sucess
0
 
LVL 26

Accepted Solution

by:
ushastry earned 500 total points
ID: 24831081
This seems to be because of the some Anti-virus system which regularly scans windows/temp directory ...
Please change the tmpdir path to some other path in your my.ini and restart MySQL and try the dump one more time

tmpdir=F:/mysqlbackup/temp

You can see similar case here..

http://bugs.mysql.com/bug.php?id=25872
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

Author Comment

by:tomar_10
ID: 24860026
there is no tmpdir path in my.ini


0
 
LVL 26

Expert Comment

by:ushastry
ID: 24860436
If its not there then its taking default path... which is windows/tmp... check the output of below SQL command..

show variables like 'tmpdir';

Later you can change this by adding below line to your my.ini

tmpdir=F:/mysqlbackup/temp
0
 

Author Comment

by:tomar_10
ID: 24860802
Output of the command

mysql> show variables like 'tmpdir';
+---------------+-----------------+
| Variable_name | Value           |
+---------------+-----------------+
| tmpdir        | C:\WINDOWS\TEMP |
+---------------+-----------------+
1 row in set (0.00 sec)

Well i will let you know after changing the path. it require some downtime.
0
 
LVL 26

Expert Comment

by:ushastry
ID: 24867367
on np!

Regards,
Umesh
0
 

Author Comment

by:tomar_10
ID: 24941657
yes it is due to macfee only , i have changed the path.
now it is showing error to the new path.
I am using virusscan enterprise 8.5i

0
 
LVL 26

Expert Comment

by:ushastry
ID: 24941678
Check if there is any way you can exclude the new path from scanning..
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
understanding output of mysql version 2 62
put constant from select to insert into field  Posgresql 2 90
MySQL Init Waits 25 100
update joined tables 2 48
Fore-Foreword Today (2016) Maxmind has a new approach to the distribution of its data sets.  This article may be obsolete.  Instead of using the examples here, have a look at the MaxMind API (https://www.maxmind.com/en/geolite2-developer-package). …
More Fun with XML and MySQL – Parsing Delimited String with a Single SQL Statement Are you ready for another of my SQL tidbits?  Hopefully so, as in this adventure, I will be covering a topic that comes up a lot which is parsing a comma (or other…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question