need some mysql help here

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alex79
    Confirmed User
    • Jun 2002
    • 996

    #1

    need some mysql help here

    i've copyed the files of a mysql database from a server to another (server1: /var/lib/mysql/database/files to server2: /var/lib/mysql/database/files)

    i can access the database on the new server but all the tables are read only.. i made a chown mysql /var/lib/mysql/database/files and chmod 777 /var/lib/mysql/database/files but all tables are still in readonly format.. what do i have to do so i can have full access on the database on the server2?

    thanks
  • Baker Rd
    Confirmed User
    • Nov 2005
    • 647

    #2
    Did you copy the files while mysql was still running? That would be why they are read-only. You should stop the mysql service before copying database files.

    You can also try doing a FLUSH TABLES.
    money talks and bullshit walks.

    Comment

    • com
      Confirmed User
      • Aug 2003
      • 4541

      #3
      make sure the group setting is correct chown user:group or chgrp

      Real. Professional. Hosting.
      .:Expect Nothing Less:.
      320-078-843 :: www.realprohosting.com :: [email protected]

      Comment

      • FuqALot
        Confirmed User
        • Dec 2001
        • 3817

        #4
        Try to see if the mysql account you're using has enough permissions to write.

        Comment

        • MickeyG
          Confirmed User
          • May 2004
          • 4134

          #5
          wouldn't it have been better/easier to use mysql dump?

          Comment

          • GFX Wiz
            Confirmed User
            • Jul 2004
            • 916

            #6
            Originally posted by MickeyG
            wouldn't it have been better/easier to use mysql dump?
            That's my thought too
            ICQ: 148.167.599

            Comment

            • mikesouth
              Confirmed User
              • Jun 2003
              • 6334

              #7
              exactly...why would you copy files?

              export and import the database....thats the only reliable way to do it...mysql keeps its system catalogs in tablescopying files is a sure way to get those ginked up.
              Mike South

              It's No wonder I took up drugs and alcohol, it's the only way I could dumb myself down enough to cope with the morons in this biz.

              Comment

              Working...