Databases Reference
In-Depth Information
Figure 2-18. Starting the Mac OS X NetInfo Manager
You should see two lines similar to the ones above.
If, for some reason, the mysql user and group aren't configured on your system, you
have to create them. You can add them in the NetInfo Manager by clicking on the lock
icon at the bottom of the screen and selecting the Add entry from the Edit menu. How-
ever, it's probably faster to perform these steps from the command line.
First, create the user mysql (note that the first forward slash symbol ( / ) stands by itself
on the line):
$ sudo niutil -create / /users/mysql
and assign invalid (and therefore relatively secure) values for the home directory and
login shell:
$ sudo niutil -createprop / /users/mysql home /var/empty
$ sudo niutil -createprop / /users/mysql shell /usr/bin/false
Next, create the group mysql :
$ sudo niutil -create / /groups/mysql
Once you've done this, define a Group ID number ( gid ) for the mysql group and a User
ID number ( uid ) for the mysql user. The Mac OS X default value for both these IDs is
74; you can choose this or any other value—for example, 674—that's not already al-
located to a user or group. Let's use 74 in our example, and assign this value to the
mysql group and user:
 
Search WWH ::




Custom Search