Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
this is just tedious...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
zambizzi
Guru
Guru


Joined: 28 Aug 2004
Posts: 581
Location: Boise Idaho

PostPosted: Sat Sep 04, 2004 1:46 am    Post subject: this is just tedious... Reply with quote

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
View user's profile Send private message
TimG
n00b
n00b


Joined: 03 Jun 2003
Posts: 62
Location: Houston, TX

PostPosted: Sat Sep 04, 2004 2:38 am    Post subject: Reply with quote

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
View user's profile Send private message
hanj
Veteran
Veteran


Joined: 19 Aug 2003
Posts: 1500

PostPosted: Sat Sep 04, 2004 2:42 am    Post subject: Reply with quote

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
View user's profile Send private message
TimG
n00b
n00b


Joined: 03 Jun 2003
Posts: 62
Location: Houston, TX

PostPosted: Sat Sep 04, 2004 2:48 am    Post subject: Reply with quote

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
View user's profile Send private message
zambizzi
Guru
Guru


Joined: 28 Aug 2004
Posts: 581
Location: Boise Idaho

PostPosted: Sat Sep 04, 2004 6:06 am    Post subject: nope, turns out Reply with quote

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
View user's profile Send private message
zambizzi
Guru
Guru


Joined: 28 Aug 2004
Posts: 581
Location: Boise Idaho

PostPosted: Sat Sep 04, 2004 7:23 am    Post subject: blip Reply with quote

everything's cool!

Thanks again!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum