image
image

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

Reply
 
Thread Tools
  #1  
Old June 16th, 2003, 03:34 PM
MikeXpop's Avatar
iEye
 
Join Date: Dec 2002
Posts: 356
Thanks: 0
Thanked 0 Times in 0 Posts
MikeXpop is on a distinguished road
MySQL user + Password

Well, I've set up my server and all is well. I've installed MySQL and it works perfectly, except that the user MySQL has no password. When I leave password blank in phpmyadmin or CocoaMySQL, it works. Obviously this is a major security risk, so I opened up Netinfo Manager, went to users, MySQL, and where it said password I changed it from a '*' to an actual password. Unfortunately, now it doesn't work (yes I changed the config files btw). When I change it back to an '*', it works again. Is there any to fix this?

Any help would be appreciated
__________________
600 iBook, 20g HD, CD-ROM, 640 RAM, running OS X.2.6
5gb iPod
Apple LC ~~RIP~~
Mac Classic
Reply With Quote
  #2  
Old June 16th, 2003, 03:57 PM
3mors's Avatar
HampCake Studios
 
Join Date: Oct 2001
Posts: 660
Thanks: 0
Thanked 0 Times in 0 Posts
3mors is on a distinguished road
You have to change it by terminal, not in NetInfo.

MySQL user has to be changed in MySQL server, not in Mac OS X.

Type this on terminal:

mysqladmin -u root password new_password_here

in place of new_password_here, you have to put the password you want.
__________________
3mors
------------------------------------------------------
iMac G5 20"/MacBook Pro 17"/PowerBook G4
------------------------------------------------------
Reply With Quote
  #3  
Old June 16th, 2003, 04:05 PM
MikeXpop's Avatar
iEye
 
Join Date: Dec 2002
Posts: 356
Thanks: 0
Thanked 0 Times in 0 Posts
MikeXpop is on a distinguished road
Thanks, but terminal couldn't find the command mysqladmin...
__________________
600 iBook, 20g HD, CD-ROM, 640 RAM, running OS X.2.6
5gb iPod
Apple LC ~~RIP~~
Mac Classic
Reply With Quote
  #4  
Old June 16th, 2003, 04:17 PM
mr. k's Avatar
Registered User
 
Join Date: Oct 2002
Location: mpls. mn
Posts: 1,408
Thanks: 0
Thanked 0 Times in 0 Posts
mr. k is on a distinguished road
Try
Code:
/usr/local/mysql/bin/mysqladmin -u root password (............).
But how did you install the MySQL? I have been having endless problems getting the damn show running on my mac, but that is because I keep deleting all the files without turning off the server... Oh and btw has anyone seen the .pkg distribution that makes a startupitem to launch the MySQL server after a restart? I lost mine :b
__________________
iMac G3 600Mhz, 256MB RAM, 40GB HD, 10.3.5
20GB iPod (Click Wheel) w/ Griffin iTrip // AIM:kjell05
Reply With Quote
  #5  
Old June 16th, 2003, 04:26 PM
MikeXpop's Avatar
iEye
 
Join Date: Dec 2002
Posts: 356
Thanks: 0
Thanked 0 Times in 0 Posts
MikeXpop is on a distinguished road
[****:~] mikexpop% /usr/local/mysql/bin/mysqladmin -u root password ******
/usr/local/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: NO)'
[****:~] mikexpop%


Hmm, I just recently (and by recently I mean 10 minutes ago) activated root, could that be my problem? Do I need to restart or something like that?

EDIT: And about the MySQL, I just installed a "complete MySQL package" or something like that. From somewhere. Heh, aren't I specific?
__________________
600 iBook, 20g HD, CD-ROM, 640 RAM, running OS X.2.6
5gb iPod
Apple LC ~~RIP~~
Mac Classic
Reply With Quote
  #6  
Old June 16th, 2003, 04:54 PM
3mors's Avatar
HampCake Studios
 
Join Date: Oct 2001
Posts: 660
Thanks: 0
Thanked 0 Times in 0 Posts
3mors is on a distinguished road
If u have installed the "COMPLETE MySQL", u can install also the PreferancePanes for MySQL that is in the same dmg.

Then u can change root password on System Preferences in "Other" row.
__________________
3mors
------------------------------------------------------
iMac G5 20"/MacBook Pro 17"/PowerBook G4
------------------------------------------------------
Reply With Quote
  #7  
Old June 16th, 2003, 05:08 PM
MikeXpop's Avatar
iEye
 
Join Date: Dec 2002
Posts: 356
Thanks: 0
Thanked 0 Times in 0 Posts
MikeXpop is on a distinguished road
DER! Thanks. I completely forgot about that.

Problem solved!
__________________
600 iBook, 20g HD, CD-ROM, 640 RAM, running OS X.2.6
5gb iPod
Apple LC ~~RIP~~
Mac Classic
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
Reset user password shazb Mac OS X System & Mac Software 0 July 31st, 2002 11:33 PM


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


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