image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old November 28th, 2001, 03:31 AM
hyph-n's Avatar
Registered User
 
Join Date: Jun 2001
Location: UK
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
hyph-n is on a distinguished road
Question mysql user

install mysql & all is working gr8

however, i needed to setup a user called 'mysql' - no problem with that, except that it is now visible on the Logon screen. Is there a way to choose which users are visible on the Logon screen & which are not...?
__________________
Powerbook G4 12" (1.5ghz G4/1.25gb/60gb) | iBook G3 (500mhz G3 / 384mb / 10gb) | Powerbook 190cs (66mhz 68040/12mb/500mb) | PowerMac G4 (466mhz G4/896mb/160gb HD) | Power Computing PowerCenter Pro 210 (210mhz PowerPC 604e/128mb/2Gb+4Gb SCSI HD) | Powerbook 190 (66mhz 68040/12mb/500mb) | Newton MessagePad 2100 (+ Keyboard +Fax Modem +WiFi + 512mb CF)
Reply With Quote
  #2  
Old December 8th, 2001, 02:06 PM
Registered User
 
Join Date: Dec 2001
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
alligatorTim is on a distinguished road
check out devshed.com

search for osx and read their description on how to create the mysql user in the article about .. here ...

it's not working right now, but this is the link i think:
http://www.devshed.com/Server_Side/A.../BuildingOnOSX
http://www.devshed.com/

which version of mysql did you install?
Reply With Quote
  #3  
Old December 9th, 2001, 04:13 PM
hyph-n's Avatar
Registered User
 
Join Date: Jun 2001
Location: UK
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
hyph-n is on a distinguished road
not sure that you understand what i am asking....
I have mysql up & running A.OK...

i am running: mysql Ver 11.15 Distrib 3.23.45, for apple-darwin5.1 (powerpc)

the only problem i have is that the 'mysql' user appears on the front login screen. - I don't want i to -> i want it to be like 'root', in that it doesn't appear & you have to choose 'other' to get to it....

n e ideas n e 1?
__________________
Powerbook G4 12" (1.5ghz G4/1.25gb/60gb) | iBook G3 (500mhz G3 / 384mb / 10gb) | Powerbook 190cs (66mhz 68040/12mb/500mb) | PowerMac G4 (466mhz G4/896mb/160gb HD) | Power Computing PowerCenter Pro 210 (210mhz PowerPC 604e/128mb/2Gb+4Gb SCSI HD) | Powerbook 190 (66mhz 68040/12mb/500mb) | Newton MessagePad 2100 (+ Keyboard +Fax Modem +WiFi + 512mb CF)
Reply With Quote
  #4  
Old December 11th, 2001, 02:23 AM
Registered User
 
Join Date: Dec 2001
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
domih is on a distinguished road
OOPS! Forget about the original post below. It does not do what it says.

This should:

Using the NetInfo Manager set the passwd property of the mysql user account to *

Still, the account appears in Sys Prefs / Users, so I guess this is not the whole story.


----------------------------------------------------------------------------------
Original Post:

It's probably because the uid of the mysql user account is above 500.

do the following as root in a terminal window:

# shutdown mysql if it's running (the -p assuming you've have secured MySQL)

> mysqladmin -u your_mysql_root_account -p shutdown

# read the netinfo entry for the mysql user

> niutil -read / /users/mysql

# here you should see the uid, if it is >=500, change it to something like 200
# before doing so, check that no other user has a uid=200 to do so:

> nigrep 200 /

or

> nireport / /users name uid

#if there is no uid set 200, then proceed with the change for mysql (otherwise use another value between 100-499)

> niutil -createprop / /users/mysql uid 200

# don't forget to reset the permissions (assuming your stuff is in /usr/local/mysql) because you just change the uid

> chown -R root.mysql /usr/local/mysql
> chown -R mysql.mysql /usr/local/mysql/var

# restart MySQL

> /usr/local/mysql/bin/safe_mysqld --user=mysql &

# Check that mysqld is happy writing in its var directory.

# Assigning a password to the mysql user account is not superfluous:

> passwd mysql

# For more information:

> apropos netinfo
> man niutil

There is also a doc about NetInfo on www.apple.com in the MacOS X Server section if what precedes leaves you wondering. There are also some TechNotes more or less up to date but useful to read (the one about lookupd for instance). That will tell you the purpose of NetInfo (and why it overrides the regular BSD "vi /etc/group; vipw" scheme).

You can also change the uid with Applications / Utilities / NetInfo Manager but make sure to shutdown MySQL (before) and to chown (after) on its directories before restarted it.

The article in DevShed uses uid=71, that's surprising because uid<100 are reserved to the system. Anyway...

Note: The mysql user account will still appear in the Sys Pref: Users. I'm still trying to understand why.

Last edited by domih; December 11th, 2001 at 04:44 AM.
Reply With Quote
  #5  
Old December 11th, 2001, 01:21 PM
hyph-n's Avatar
Registered User
 
Join Date: Jun 2001
Location: UK
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
hyph-n is on a distinguished road
Thumbs up


the NetInfo * thing worked.... but what has this done...? - has it effectively said that the mysql user doesn't have a password? - isn't this a security risk..?
__________________
Powerbook G4 12" (1.5ghz G4/1.25gb/60gb) | iBook G3 (500mhz G3 / 384mb / 10gb) | Powerbook 190cs (66mhz 68040/12mb/500mb) | PowerMac G4 (466mhz G4/896mb/160gb HD) | Power Computing PowerCenter Pro 210 (210mhz PowerPC 604e/128mb/2Gb+4Gb SCSI HD) | Powerbook 190 (66mhz 68040/12mb/500mb) | Newton MessagePad 2100 (+ Keyboard +Fax Modem +WiFi + 512mb CF)
Reply With Quote
  #6  
Old December 11th, 2001, 04:06 PM
Registered User
 
Join Date: Dec 2001
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
domih is on a distinguished road
The password being * out, it's gonna be a challenge to log using that account.

Try to log as mysql through ssh or the Log in window (with the Name and fields entry fields option selected in SysPrefs/Login), crypt() will have a great difficulty to match '*' whatever you try as a password.

Why is the account still appearing in SysPrefs/Users, I don't know, the account "looks" like www's in NetInfo, so I guess Users has its own configuration somewhere else. When documentation is scarce...

Any good Samaritan reading this?
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Thank God the Witch Is Dead Veljo Mac OS X System & Mac Software 2 June 27th, 2003 06:51 PM
MySQL user + Password MikeXpop Mac OS X System & Mac Software 6 June 16th, 2003 05:08 PM
Adding new user to mysql LogicMan Mac Classic System & Software 0 May 28th, 2003 09:49 PM


All times are GMT -5. The time now is 02:02 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.