Tables readonly

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sjaakie Helderhorst

    #1

    Tables readonly

    Hi,

    I managed to get a Fedora install up and running. Apache+PHP4+MyS ql.
    Copied a database from online server (RedHat) to my own, set permissions
    (chown mysql, chmod 777 mysql) so all files are (should be) RW. However,
    when trying to execute an Insert (or Update) query, it raises an error
    'table is readonly'.

    How to solve this problem?

    Thanks in advance!


  • Aggro

    #2
    Re: Tables readonly

    Sjaakie Helderhorst wrote:
    [color=blue]
    > I managed to get a Fedora install up and running. Apache+PHP4+MyS ql.
    > Copied a database from online server (RedHat) to my own, set permissions
    > (chown mysql, chmod 777 mysql) so all files are (should be) RW. However,
    > when trying to execute an Insert (or Update) query, it raises an error
    > 'table is readonly'.
    >
    > How to solve this problem?[/color]

    Check what permissions you have for database folders and table files
    inside them. If you don't have correct permissions, fix them. It is
    operating system issue how to do that, and it should be asked in a more
    suitable newsgroup about your operating system.

    I personally have permission 600 for database folders and 660 for table
    files. 777 sounds dangerous to me, since it gives anyone permission to
    write and read your database files and execute them.

    Comment

    • Sjaakie Helderhorst

      #3
      Re: Tables readonly


      "Aggro" <spammerdream@y ahoo.com> schreef in bericht
      news:5YFxc.274$ __2.32@read3.in et.fi...[color=blue]
      > Sjaakie Helderhorst wrote:
      >[color=green]
      > > I managed to get a Fedora install up and running. Apache+PHP4+MyS ql.
      > > Copied a database from online server (RedHat) to my own, set permissions
      > > (chown mysql, chmod 777 mysql) so all files are (should be) RW. However,
      > > when trying to execute an Insert (or Update) query, it raises an error
      > > 'table is readonly'.
      > >
      > > How to solve this problem?[/color]
      >
      > Check what permissions you have for database folders and table files
      > inside them. If you don't have correct permissions, fix them. It is
      > operating system issue how to do that, and it should be asked in a more
      > suitable newsgroup about your operating system.
      >
      > I personally have permission 600 for database folders and 660 for table
      > files. 777 sounds dangerous to me, since it gives anyone permission to
      > write and read your database files and execute them.[/color]

      I agree 777 is dangerous, but it's a desperate attempt to solve this
      read-only prob.
      I'll try another group, thanks for you support.


      Comment

      • Virgil Green

        #4
        Re: Tables readonly

        "Sjaakie Helderhorst" <prefer.notto@t ell.you> wrote in message
        news:40c6ce18$0 $34762$e4fe514c @news.xs4all.nl ...[color=blue]
        > Hi,
        >
        > I managed to get a Fedora install up and running. Apache+PHP4+MyS ql.
        > Copied a database from online server (RedHat) to my own, set permissions
        > (chown mysql, chmod 777 mysql) so all files are (should be) RW. However,
        > when trying to execute an Insert (or Update) query, it raises an error
        > 'table is readonly'.
        >
        > How to solve this problem?
        >[/color]

        Sounds to me like you haven't set the mysql permissions. These are different
        from the file/directory permissions. Visit
        http://dev.mysql.com/doc/mysql/en/Privilege_system.html and review the
        priveleges your db user has for the db tables.

        - Virgil


        Comment

        Working...