View previous topic :: View next topic |
Author |
Message |
zambizzi Guru
Joined: 28 Aug 2004 Posts: 581 Location: Boise Idaho
|
Posted: Sat Sep 04, 2004 1:46 am Post subject: this is just tedious... |
|
|
I simply want to create a new mysql user, why is this so frickin' complicated?
I tried this:
http://dev.mysql.com/doc/mysql/en/Adding_users.html
...no good, it must be outdated; I'm using 4.0.20
It won't insert because I'm not filling all of the fields in the mysql.users table, this is what makes me think the documentation above is outdated.
I can't do it w/ the "grant" method as the database doesn't exist yet, I need the user first.
Any ideas?
-v |
|
Back to top |
|
|
TimG n00b
Joined: 03 Jun 2003 Posts: 62 Location: Houston, TX
|
Posted: Sat Sep 04, 2004 2:38 am Post subject: |
|
|
How about:
Code: |
CREATE DATABASE blah;
GRANT ALL PRIVILEGES ON blah.* TO 'new_user'@'localhost' IDENTIFIED BY 'some_pass' WITH GRANT OPTION;
DROP DATABASE blah;
|
|
|
Back to top |
|
|
hanj Veteran
Joined: 19 Aug 2003 Posts: 1500
|
Posted: Sat Sep 04, 2004 2:42 am Post subject: |
|
|
Hello zambizzi
Why do you need the user first? I'm just trying to understand the problem.
TimG's solution should work nicely, another option to make things easier.. is to emerge phpmyadmin. If you do this, make sure you limit access to it, if this is going on a public webserver.
hanji |
|
Back to top |
|
|
TimG n00b
Joined: 03 Jun 2003 Posts: 62 Location: Houston, TX
|
Posted: Sat Sep 04, 2004 2:48 am Post subject: |
|
|
hanj wrote: | Why do you need the user first? I'm just trying to understand the problem.
|
I'll second that. I too am curious. |
|
Back to top |
|
|
zambizzi Guru
Joined: 28 Aug 2004 Posts: 581 Location: Boise Idaho
|
Posted: Sat Sep 04, 2004 6:06 am Post subject: nope, turns out |
|
|
I don't after all, I misread the documentation for an e-commerce web app I'm trying to install.
I'll try this out and let you know what I find.
Thanks! |
|
Back to top |
|
|
zambizzi Guru
Joined: 28 Aug 2004 Posts: 581 Location: Boise Idaho
|
Posted: Sat Sep 04, 2004 7:23 am Post subject: blip |
|
|
everything's cool!
Thanks again! |
|
Back to top |
|
|
|