Apache Web-Serving With Mac OS X, Part 5
Subject:   Errcode: 13
Date:   2002-05-07 04:26:23
From:   anthropos9
I ran the pkg install of MySQL and everything seemed to be working until I ran the test.php script. Here's what I got:

Connection to the database has been established.
Can't create/write to file './test/wisdom.frm' (Errcode: 13)
Table 'test.wisdom' doesn't exist
Table 'test.wisdom' doesn't exist

Warning: Supplied argument is not a valid MySQL result resource in /Users/seandean/Sites/test1.php on line 41

Can anyone help me with what I may have done wrong here?

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Errcode: 13
    2002-05-07 15:27:28  jmillr [View]

    I had exactly the same problem. Looking at all the posts here I saw one clue:

    sudo chown -R mysql /usr/local/mysql/*

    After running this command, the php script runs as advertised. (The instructions in the article are still wrong; they omit the trailing '/*').
    • Errcode: 13
      2003-01-02 03:33:34  anonymous2 [View]

      this worked perfectly for me -- many thanks. The error occurred after I upgraded my MYSQL to a newer version.. obviously lost permissions along the way.