Mysql, mysql account password, and /usr/local/mysql ownership
Hi all,
I am new to osX but familiar with Linux. I have a user 'mysql' and a group 'mysql'. I would like to make mysql the root user of the database but cannot figure out how to assign a password. I see the account in netInfo and there is an encrypted password, but no way to change it.
Depending on what you read, the directory /usr/local/mysql should belong to group mysql - I don't get the concept of 'wheel' yet.
I do have a regular user named 'meandmine' [not real]. Have /usr/local/mysql/bin in my path; I can start mysql okay. When I try to execute: mysqladmin -u root password 'password' I get an error: Access denied for user 'root'@'locahost'
So where do I go. I have looked through many, many web sites including Apple, and spent several hours in Borders looking through OsX books without luck.
Guidance is appreciated.
Feel free to answer via forum or direct [email protected]
MacBook Pro Core 2 duo Mac OS X (10.4.8)
for anyone that follows this up:
I deleted the mysql install
Activated the computers root account
Installed mysql under that account a command line with su to get root access
Then followed the instructions to log in with
mysql -u root -p
[enter password]
I am up and running, and can assign access, create rights etc. to any user: in this case the only non-root user on the machine.
Thanks for the answers though , especially the bit about the UNIX forum.
Bob
Similar Messages
-
Hello,
I'm on a Mac Pro Quad Core Intel Xeon (64-bit) using OS 10.6.4. I have mysqlnd 5.0.5-dev - 081106 - $Revision: 289630 $ and PHP Version 5.3.1.
I have also installed phpMyAdmin 3.3.1 and have set up the relations tables in a pmadb within mysql; created a new database with tables; and created some new users. I am able to access and use mysql via phpMyAdmin.
But now I am unable to login to mysql via the Terminal command:
mysql -u root -p
which now returns an error message of:
/usr/local/mysql/bin/mysql: unknown variable 'datadir=/usr/local/mysql/data'
my.cnf file reads:
[mysqld]
datadir=/usr/local/mysql/data
socket=/var/mysql/mysql.sock
#skip-grant-tables=1
[client]
datadir=/usr/local/mysql/data
socket=/var/lib/mysql/mysql.sock
and I can see the data directory in that location when using the Terminal.
My questions:
1. Is this related to anything I have done in setting up phpMyAdmin (tables, users)?
2. Is this a permissions problem with the directory named /usr/local/mysql/data?
Currently, the permissions and ownership are this:
drwxr-x--- 11 _mysql wheel 374 Jun 29 12:10 data
3. Is this a problem from upgrading to 10.6.4 recently?
4. Is this a my.cnf problem?
I would really like to be able to do things in the Terminal with mysql in addition to using phpMyAdmin.
Many thanks for any help on this.
Best,
ShelleyShelley Schreiber wrote:
Thanks for your suggestion, etresoft, but this was not helpful, I'm afraid. Removing datadir=/usr/local/mysql/data did not work. And prior to using phpMyAdmin, I was able to login via Terminal with this in place.
Try removing my.cnf. It isn't required and seems to be giving you problems.
Also, the mysql socket value is what comes with new Macs with Snow Leopard.
MySQL doesn't come on any new Mac except with Snow Leopard Server. I think we've had this conversation before and came to the conclusion that you don't have the server version, just a jacked up client.
I am noticing that the Terminal error message I get is saying:
/usr/local/mysql/bin/mysql: unknown variable . . .
whereas the data directory path is /usr/local/mysql/data
There is no data directory in /usr/local/mysql/bin/mysql
The program that is reporting the error is is /usr/local/mysql/bin/mysql.
My MySQL installation does not have a my.cnf file. It does have a number of example cnf files that I could use if I wanted to jack up my installation. None of them have a "datadir" value in them. If you don't want to get rid of my.cnf altogether, the just get rid of all of the datadir values inside it. -
I forgot the answers for the security questions and when I try to change them (My Apple ID -> Manage your account -> Password and Security) I'm asked to answer the exact questions I'm trying to change because I don't remember the answers. How can I do it?
Can't you try the email option instead?
-
I made a new apple account but every time i download a new app it says i need to put in my old accounts password and every time I do it says incorrect how do I fix this?! I need help!
As rex already mentioned, Apps and other content are forever tied to the Apple ID that was used to purchase them. No transfers. No combining Apple IDs. Forever means forever.
In practice, this means any apps you currently have - free or paid - will need to be either repurchased using your new Apple ID or downloaded again if free. Until you refresh all of your apps, your iPad will ask for credentials to the old Apple ID any time one of the apps is updated.
Why did you feel it was necessary to create a new Apple ID? -
I changed my apple account password and now I am unable to access my mail.
I changed my apple account password and now I am unable to access my mail.
Did you also change your email password?
-
Ipad no accepting 4 digit passcode and then asking Hotmail account password and still not accepting
Not able to go beyond the first screen. Says incorrect passcode and then asks for Hotmail account password and does not accept that also. How to get into my Ipad????
Please help....!For your problem there Not much you can do if you can't finger out your password.
1: you can retore the device to last backup date. "Recommended"
2: you can keep trying to remember you password and in time your device ether lock up or it will make you want for a vary long time.
If your willing to do a retore fallow The steps below
1 power off the device.
2 turn on iTunes and then hold the home button wile holding the home pluge the device into the computer. Keep holding the home until the computer sees the device and says it needs a restor,
3 do a restor. The computer will download the new ios5.0.1 and install it on your device.
(note if the iPad reboots before the computer is done downloading don't worry about it. Just power it back off and hold home and pluge it back in ones more. And select restor again.)
4 ones it's done with restore. Click on the device in your left calume and right click it and select restor from back up.
5 pick your name of the name of the iPad and wait for it for complet all transfers. This can take some time. Even up to a hour some times more if you have a lot of apps. -
i have lost my icloud account password and i have tried a lot to get back my password through i forgot but i have not recieved any mail to my id regarding the change of password
Check your spam mail. If you have more than one email address verified with that apple id that email will go to the rescue email.
About the rescue email address
http://support.apple.com/kb/HT5312 -
I've reset my account password and i can't login to hotmail anymore
i've reset my account password and i can't login to hotmail anymore.
neeed helpdragonu wrote:
i've reset my account password and i can't login to hotmail anymore.
neeed help
What account password? Are you saying you change the password to your Hotmail email account?
If so did you make the changes on your iphone in message settings? -
I have just upgraded to mountain lion and want to use the icloud. However, years ago I set up a mobile me account and can not remember my password. The email account I set up originally as a default email no longer exists so when I try and set up a new password I am unable to because I can't access the email address I put on file. Can anybody help?
Are you particularly attached to your ex-MobileMe email address? - it sounds as if you haven't actually used it for very long time. Your easiest option would be to use the ID you have logged in with here to open an iCloud account and choose a new @icloud.com address.
If you really want to reactivate the MobileMe email address (which is also the ID for that account) you will need to contact Support. Go to https://expresslane.apple.com ; select 'All Products and Services' in the first column, 'More Products and Services' in the second column, then 'Apple ID' in the third column. In the next page select 'Other Apple ID Topics' in the first column then 'Lost or forgotten Apple ID password' and click 'Continue'. You will be offered options to contact Apple by phone. -
Meld is a visual diff merge and source control tool, I compiled but get when namcaping:
[ganlu@A meld]$ namcap meld-0.9.4.1-1.pkg.tar.gz
meld W: File (usr/local/) exists in a non-standard directory.
meld W: File (usr/local/bin/) exists in a non-standard directory.
meld W: File (usr/local/bin/meld) exists in a non-standard directory.
meld W: File (usr/local/lib/) exists in a non-standard directory.
meld W: File (usr/local/lib/meld/) exists in a non-standard directory.
I have set prefix=/usr in PKGBUILD, but it seems no luck.
#Contributor: ganlu <[email protected]>
pkgname=meld
pkgver=0.9.4.1
pkgrel=1
pkgdesc="Meld is a visual diff merge and source control tool."
url="http://meld.sf.net/"
license=GPL
depends=('python')
makedepends=('')
confilcts=()
backup=()
source=(http://ftp.gnome.org/pub/gnome/sources/meld/0.9/$pkgname-$pkgver.tar.bz2)
md5sum=('cd5f02e084529c581ce52a22647ca4dc')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install
~
~
Thank you in advance.Some time ago I also tried to make meld package and I had to do something like this to make it install in the proper directory
make prefix=/usr || return 1
make prefix=/usr install DESTDIR=$startdir/pkg
I know that's weird but it didn't want to work without these settings. I didn't investigated it further but I guess something was wrong in the meld makefile. I hope it's fixed now in the newest version. -
Forgot Account Password and Username
I forgot my account username and password for my computer because of this I can't update or download anything. Please help me find a solution
Forgot Mac Password? How to Reset Your Mac Password (with or without CD)
Change the Admin Password with Mac OS X Single User Mode
Reset mac mini admin password: Apple Support Communities
To find your user name click on the Apple icon in upper left and the logged in user is listed at the bottom of the pull down menu -
I wasn't getting any emails. Tried logging into Mozilla account but forgot password and answer to question to reset password. Called my internet provider who reset my password. They told me to contact Mozilla and let them know that I've changed it. Is there anything I need to do now? Thanks, Reynson
Hmm, this is a little confusing.
Are you currently able to access your email website and view, receive, and send mail? If that isn't working in Firefox, is it working in Internet Explorer?
If you are resetting a Mozilla account password, either for this Support site or your Firefox Sync account, and you are not getting a related email message, could you confirm that it isn't going into a Junk or Spam folder?
If you are trying to access another kind of Mozilla account, could you provide a little more information about what it is? -
I forgot my password to mobile me as it rejected what I thought was my password so I went to the link and changed my password,going through the mail me a how to change my mobile me password. I received by by second email account a notice to follow the link and make up a new password and I did all of that.
Them I went and changed via the mail settings the new password and it would not accept that pw. And would not allow me to continue any settings and would not accept the change of password. So what now .Well, mobile me was elimated over the summer.
http://www.apple.com/support/mobileme/ -
3 years ago on an older version of itunes when you could hook your ipod to a friends computer and get their songs added to your library on your ipod then take them home and add them to your computer i took some of my friends songs. at christmas i got a new laptop and plugged my ipod into the computer to add all my ipod songs onto this new computer. it asked for her password to her account but she forgets the password. so, i went to the iforgot password thing and have had multiple emails sent to my email for 6 months and none have ever came. how do i just skip her songs all together? i am so done with this.
If you use the backup, your new stuff will be erased.
-
ITunes account password and iCloud
My partner and I have been using home sharing to access the same itunes library on my laptop.
I have now enabled itunes Match and I wanted to enable my partner's laptop to access my itunes Match library now.
I had a Mobile Me account which I migrated to the icloud sometime ago. I understand that I can log my partner's itunes library into my itunes account and that should enable access to the itunes Match library?
However will that then give access to the rest of my icloud such as emails etc? Will the password be stored in the keychain?
Ideally I would like to create a separate itunes account that we could both then use that is separate from my main icloud id and password but if I do that what will happen with access to all the purchases I already made using my icloud apple id?
Is there a way of dealing with this without me having to give out my main icloud appleid account and password?
Any ideas/help would be appreciated.
Thanks
Mikeitunes match and icloud are separate services that a lot of people think they need the same apple ID for.
My recommendation:
keep your icloud account (mail, contacts, calender... former mobileme) account information the same as it is currently. I would change my username and password for the itunes account (via itunes on your laptop or destop) to a different username and password from your icloud [former mobileme] account in order to share your itunes stuff but not your mail, contacts, etc.
these two services are then able to be logged in separately on your apple devices (i have a separate icloud account than itunes account both on my iphone, so that I can share my media with my wife but have my own address book and email account on my iphone and she has her own on her iphone). let me know if this is confusing
Maybe you are looking for
-
ERROR: You do not have sufficient privileges to complete this installation
When attempting to install iTunes 9.0.1, I receive this message just after the installation begins: You do not have sufficient privileges to complete this installation for all users on this machine. Log on as an administrator and then retry this inst
-
Moving multiple symbols "breaks" motion tweens
I'm working on a character rotation in Flash CS 5.5 that leads into a basic walk cycle using all motion tweens. The tutorial I'm following (which only uses classic tweens) says to grab all the upper body symbols with free transform and rotate them fo
-
Adobe Illustrator crashes immediatly on startup
I recently had problems with my Illustrator CC crashing shortly after opening. Forum staff helped me fix this issue, it was due to a problem with my Wacom Bamboo drivers. Here is the link:http://forums.adobe.com/message/6047643#6047643 However a week
-
EDI vendor Invoice - How to Park when outside PP tolerance and post when within PP tolerance
Hi, I currently have Program parameters set in OMRY as "1" and have implemented SAP note : 501524 which enables invoice PARK. I also have PP tolerance set at 1.00 and 3%. Right now all the invoices that are not an exact match..i.e. whether within th
-
I've lost my old firefox, how do i get it back? My MAC mini is OS 10.5
i've lost my old firefox, how do i get it bak. My Mac mini has OS 10.5.