MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old August 11th, 2003, 02:30 PM
Noctum Noctum is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 4 Noctum User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 37 sec
Reputation Power: 0
mySQL error 1064

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7 to server version: 4.0.14-nt

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> create database Forum
-> grant all privileges on Forum.* to Noctum@localhost
-> identified by 'my_password';
ERROR 1064: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'grant all privileges on Forum.* to Noctum@localhost
identified
mysql>

What am I doing wrong? It never works. Im using mySQL version 4.0.14b and i have WinmySQLadmin 1.4. Im doing it on my computer. Can anybody help?

Reply With Quote
  #2  
Old August 12th, 2003, 07:00 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
mysql.com

Reply With Quote
  #3  
Old August 16th, 2003, 11:09 PM
pentapenguin pentapenguin is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 51 pentapenguin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 m 7 sec
Reputation Power: 6
Quote:
create database Forum
-> grant all privileges on Forum.* to Noctum@localhost
-> identified by 'my_password';


You forgot the good ole' semicolon.
Try this:
"CREATE DATABASE Forum;"
(no quotes of course)

Then do the
"grant all privileges on Forum.* to Noctum@localhost identified by 'my_password';"

Those are two different commands and cannot be entered together.

I don't know if that syntax is exact on that grant statement because my MySQL server is down.

Reply With Quote
  #4  
Old August 20th, 2003, 10:34 AM
Noctum Noctum is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 4 Noctum User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 37 sec
Reputation Power: 0
acces denied?

Reply With Quote
  #5  
Old August 25th, 2003, 07:59 PM
digitalamit digitalamit is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: New Delhi, India
Posts: 19 digitalamit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to digitalamit Send a message via AIM to digitalamit Send a message via Yahoo to digitalamit
What is the username you are loggin in with ? The username you are logging in doesn't have the access for that action.

Try this
Code:
mysql -u root -p PASSWORD


Where PASSWORD is the password of the root account.

Also after you have granted the privileges, you should execute .... in mysql
Code:
flush privileges;


HTH!

Reply With Quote
  #6  
Old August 26th, 2003, 12:24 AM
Noctum Noctum is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 4 Noctum User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 37 sec
Reputation Power: 0
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8 to server version: 4.0.14-nt

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> create database Forum;
Query OK, 1 row affected (0.00 sec)

mysql> grant all privileges on Forum.* to Noctum@localhost
-> identified by 'pass';
ERROR 1044: Access denied for user: '@localhost' to database 'Forum'
mysql>

Reply With Quote
  #7  
Old August 16th, 2006, 01:52 PM
Tazlord Tazlord is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2006
Posts: 1 Tazlord User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 34 sec
Reputation Power: 0
First, make sure you are logged in as a privileged user to the mysql database, usually 'root'
Second, make sure that privileged user has a password defined.

Your syntax should be as follows:
GRANT all privileges ON Forum.* TO 'Noctum'@'localhost' IDENTIFIED BY 'insertpasswordhere';

Remember to use the single quotes or it won't work.

Reply With Quote
  #8  
Old August 16th, 2006, 05:15 PM
Noctum Noctum is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 4 Noctum User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 37 sec
Reputation Power: 0
Thanks for the replies.

Sorry to say Tazlord but you are about 3 years to late on this one but thanks for the answer anyway.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > mySQL error 1064


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway