|
#1
| ||||
| ||||
| 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 |
|
#2
| ||||
| ||||
| 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 ------------------------------------------------------ |
|
#3
| ||||
| ||||
| 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 |
|
#4
| ||||
| ||||
| Try Code: /usr/local/mysql/bin/mysqladmin -u root password (............).
__________________ iMac G3 600Mhz, 256MB RAM, 40GB HD, 10.3.5 20GB iPod (Click Wheel) w/ Griffin iTrip // AIM:kjell05 |
|
#5
| ||||
| ||||
| [****:~] 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 |
|
#6
| ||||
| ||||
| 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 ------------------------------------------------------ |
|
#7
| ||||
| ||||
| 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 |
![]() |
| Thread Tools | |
|
|
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 |