Am I root or not? (OSX 10.4.2)
-
Hi.
I’m getting the standard “Error establishing a database connection”-jazz on localhost on my new powerbook. I’ve had this many times in the past, each time with a completely different cure needed to fix it. This time the symptoms are as follows:
First I run mysql> SELECT USER(); and get:
+——————-+
| USER() |
+——————-+
| root@localhost |
+——————-+which looks ok to me, so I check that I am set up in wp-config as user ‘root’, like I am on the other servers. Yes, no problem there.
I have earlier made a database called ‘testzone’, which shows up in CocoaMySql, but not in mysql> when entering ‘show databases;’
I therefore deleted testzone in CocoaMySql and attempted to create it anew in mysql> using create database testzone;This gives me an ERROR 1044 (4200): Access denided for user ”@’localhost’ to database ‘testzone’
Why not ‘root’@’localhost’? I investigate by running mysql> SELECT USER(); again, and this time, to my surprise, I get:
+——————-+
| USER() |
+——————-+
| th@localhost |
+——————-+Ehh? Now what? Where did root go? I have earlier also tried to change password for root to correspond with an earlier password format (or something). To no avail. I couldn’t get access to do that either. Which isn’t surprising if I’m not mighty ‘root’ after all but merely a pitiful little ‘th’.
I should also point out that I don’t actually understand any of this, I just read a lot of tutorials and come out of it with these nifty commands that sound right.
Running mysql standard 5.0.1 for osx 10.4 (on 10.4.2 with the apache that came with it, God knows what version), which is exactly the same as on my other Mac. It all works there. Then again… I know I’m root there. Who am I here?
- The topic ‘Am I root or not? (OSX 10.4.2)’ is closed to new replies.