LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 03-30-2009, 02:50 AM   #1
h725
Member
 
Registered: Apr 2008
Posts: 114

Rep: Reputation: 15
Error 1016 during mysqldump


Hi,

I'm trying to backup all my mysql databases.
I'm using this string:

mysqldump -uroot --opt --all-databases -p > /root/mysqldump.sql

I've this error:

Enter password:
mysqldump: Got error: 1016: Can't open file: 'phpbb_sessions.MYI'. (errno: 145) when using LOCK TABLES

How can I solve this?
I need to "stop" all vhost that are using my mysql server? Or add some specific option?
Thank you
 
Old 03-30-2009, 04:26 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 9,608

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
You can try adding the "--quick" option to see if it helps. Otherwise I'm afraid you have to shutdown at least the vhost running phpbb, before running mysqldump.
 
Old 08-17-2009, 04:58 AM   #3
shijujoe
LQ Newbie
 
Registered: Aug 2007
Posts: 2

Rep: Reputation: 0
hi

Try with --lock-tables=false in mysqldump syntax

eg: mysqldump dbname > dbname.sql -u root -p --lock-tables=false

Regards
Shiju V.Joseph
EY|Trivandrum
 
  


Reply

Tags
mysqldump


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
managed to make files owned by 1016 and cannot delete, i'm using slackware 12 The_spacekadet Linux - Software 2 02-25-2008 04:01 AM
managed to make files owned by 1016 and cannot delete, i'm using slackware 12 The_spacekadet Linux - Newbie 2 02-25-2008 01:09 AM
Need help on wearnes laptop 1016 ludfiw Linux - Laptop and Netbook 2 11-29-2006 07:20 PM
about mysqldump javier_ccs Programming 3 08-08-2005 06:13 PM


All times are GMT -5. The time now is 04:47 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration