Results 1 to 4 of 4

Thread: Does any of you have run sqlite successful ?

  1. #1

    Does any of you have run sqlite successful ?

    Hello,
    I've installed Oleg's firmware, and run php web server successfully ( thanks Macsat ). But when I try to use sqlite I have this error and can't find out how to fix it :
    "malformed database schema - unable to open a temporary database file for storing temporary tables" .
    Does any of you have run sqlite succesfully ? If yes how did you do it ?

    ( sorry for my poor english )

    Thuyet

    P.S : same thing for php-mysql ipkg package.

  2. #2
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Quote Originally Posted by thuyet
    "malformed database schema - unable to open a temporary database file for storing temporary tables" .
    Because you have problems with temporary database files I suspect sqlite tries to create these tables in /tmp. But when the database runs with user nobody or something else non-admin then it has no write access to /tmp. I think you should look in that direction.
    Does any of you have run sqlite succesfully ? If yes how did you do it ?
    A little search would return this: http://wl500g.info/showpost.php?p=15637&postcount=26

  3. #3

    It works ! Cool

    Hello all,

    Thank you Styno, I've chmod 777 tmp directory, and now everything works very well.:-)
    But now I just wondering if is it "dangerous" to do a chmod 777 on the tmp directory

    Thanks a lot

    Thuyet

  4. #4
    Join Date
    Apr 2004
    Location
    Netherlands
    Posts
    1,308
    Quote Originally Posted by thuyet
    But now I just wondering if is it "dangerous" to do a chmod 777 on the tmp directory
    I don't think it's a security risk, but you can try to create another directory where sqlite stores it's temporary tables with the proper access rights. But sqlite will have to support that (i.e. have an configuration option for that). Otherwise the current solution is fine.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •