» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > MySQL Forums

MySQL Forums Share Your Ideas and Tips about MYSQL. Ask questions about MYSQL. Table Design and Much More...

Reply
 
Thread Tools Display Modes
  #1  
Old 08-17-2006, 09:49 AM
Mikkel Mikkel is offline
Junior Member
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Mikkel is on a distinguished road
Default user account troubles>>>

I have Mysql 5.0.22, php4.4.1. Apache 1.3.36. but having difficulties in creating a databse user account.

in mysql as root I tried using
mysql gallery2 -u root -p -e "GRANT ALL ON database1.* TO 4h77lgs@localhost IDENTIFIED BY '12345'"

I am not sure if I need to include the ' ' around the password. Pressing enter returns me a -> prompt. If I then type \q and try to login into mysql using mysql -u 4h771gs -p I revieve access denied.
Next I tried
CREATE USER 4h77lgs IDENTIFIED BY PASSWORD '12345'
SET PASSWORD FOR 4h77lgs = PASSWORD('12345')
GRANT ALL ON database1.* TO 4h77lgs@localhost IDENTIFIED BY '12345'

Can some please explain exactly what I need to type to create a database user and grant it rights to a databaes? -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 08-17-2006, 09:51 AM
sierra sierra is offline
Senior Member
 
Join Date: Jul 2006
Posts: 220
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 16
sierra is on a distinguished road
Default

It looks as if commands entered at the mysql> prompt need to be terminated by a delimiter, which defaults to a semicolon:

mysql> CREATE USER 4h77lgs@localhost IDENTIFIED BY PASSWORD '12345';
mysql> GRANT ALL ON database1.* TO 4h77lgs@localhost IDENTIFIED BY '12345';
mysql> SET PASSWORD FOR 4h77lgs = PASSWORD('12345'); -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Beware : Paypal Can lock account rian Google 3 06-07-2007 09:03 AM
account cancellation. fragil Reseller Hosting Forum 1 12-15-2006 03:08 AM
AIT Offers Merchant Account Gateway outsourcingplans Web Hosting News 0 12-14-2006 02:33 AM
user account form. JKswing Web Hosting Industry 1 10-17-2006 03:11 AM
reseller account. rowlin Reseller Hosting Forum 1 09-25-2006 09:24 AM


All times are GMT. The time now is 02:34 PM.