Unix Technical Forum

cannot move the mysql database to a new server

This is a discussion on cannot move the mysql database to a new server within the MySQL forums, part of the Database Server Software category; --> Dear all, I just reinstall the redhat 8. For convienience, I just copy all the data files from the ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 07:29 AM
Simon Lee
 
Posts: n/a
Default cannot move the mysql database to a new server

Dear all,

I just reinstall the redhat 8. For convienience, I just copy all the data
files from the old mysql server to the new one. Ao I give the same
priviledge to it, .i.e. chown mysql.mysql and chmod 660, in order to give
corresponding read/write authority. Also we give priviledge to the user in
the mysql database. Anyway, when deleting some data from a table of the
database, following error is given as

ERROR 1036 : Table 'XXX' is read only.

Simon


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 07:29 AM
Jerry Stuckle
 
Posts: n/a
Default Re: cannot move the mysql database to a new server

Simon Lee wrote:
> Dear all,
>
> I just reinstall the redhat 8. For convienience, I just copy all the data
> files from the old mysql server to the new one. Ao I give the same
> priviledge to it, .i.e. chown mysql.mysql and chmod 660, in order to give
> corresponding read/write authority. Also we give priviledge to the user in
> the mysql database. Anyway, when deleting some data from a table of the
> database, following error is given as
>
> ERROR 1036 : Table 'XXX' is read only.
>
> Simon
>
>


You should always backup and restore the database with the mysql
functions! Then you won't run into this (and other) problems.

Looks like you copied the files while the server (either old or new) was
running. Try to recopy the files while the server isn't running. Set
your file permissions and ownership then restart the server.

If that doesn't work, I hope you have the old server still. Because you
will need to backup the database with the MySQL utils then restore them
on the new one.

And I never understood why people think they can just copy data files
for a relational database...

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 07:29 AM
Peter H. Coffin
 
Posts: n/a
Default Re: cannot move the mysql database to a new server

On Wed, 15 Mar 2006 07:22:48 -0500, Jerry Stuckle wrote:
> And I never understood why people think they can just copy data files
> for a relational database...


'Cause that's how they made backups with Excel databases! And it always
worked then! MySQL must be broken.

--
44. I will only employ bounty hunters who work for money. Those who work for
the pleasure of the hunt tend to do dumb things like even the odds to give
the other guy a sporting chance.
--Peter Anspach's list of things to do as an Evil Overlord
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:49 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com