473,738 Members | 7,110 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Grant not working

I am doing something wrong or have something set up wrong.

When I issue

mysql> grant all on * to mike identified by 'joented' with grant
option;
Query OK, 0 rows affected (0.69 sec)

It looks like the grant worked. Here is what the mysql.user table looks
like.

mysql> select user,password, host from mysql.user;
+---------+---------------------+-----------+
| user | password | host |
+---------+---------------------+-----------+
| root | | localhost |
| root | | % |
| | 3823a5ee1f83162 6 | localhost |
| | | % |
| bruceaj | 426d920b373a5e5 b | % |
| mike | 426d920b373a5e5 b | % |
| peter | 426d920b373a5e5 b | % |
| jim | 426d920b373a5e5 b | % |
+---------+-----------------==-+-----------+

Now, when I issue a mysql command for mike, I get

C:\mysql\bin>my sql -u mike -pjoented;
ERROR 1045: Access denied for user: 'mike@localhost ' (Using password:
YES)

The ONLY User I can login as is root, as:

mysql -u root

Appreciate your help in identifing what what I have screwed up, and how do I
fix it.

Thanks.....

Bruce
Jul 17 '05 #1
3 3853
On 2003-12-18, Bruce A. Julseth <br*****@attglo bal.net> wrote:
When I issue

mysql> grant all on * to mike identified by 'joented' with grant
option;
Query OK, 0 rows affected (0.69 sec)

It looks like the grant worked.


If i remember well, the manual says that you have to reload...

mysqladmin -u root -p reload
--
verum ipsum factum
Jul 17 '05 #2
Tim Van Wassenhove wrote:
On 2003-12-18, Bruce A. Julseth <br*****@attglo bal.net> wrote:
When I issue

mysql> grant all on * to mike identified by 'joented' with grant
option;
Query OK, 0 rows affected (0.69 sec)

It looks like the grant worked.

If i remember well, the manual says that you have to reload...

mysqladmin -u root -p reload


or
mysqladmin -u root -p flush-privileges

.... also not that you shouldn't publish passwords so you ought to change it.

Jul 17 '05 #3
I tried both,
mysqladmin -u root flush-privileges
and
mysqladmin -u root reload

NOTE: root has no password on purpose.

I still fail with the following scenario:

C:\Documents and Settings\Bruce A. Julseth>mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8 to server version: 4.0.14-max-debug

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

mysql> grant all on * to mike identified by 'joented' with grant
option;
Query OK, 0 rows affected (0.65 sec)

mysql> quit
Bye

C:\Documents and Settings\Bruce A. Julseth>mysql -u mike -pjoented
ERROR 1045: Access denied for user: 'mike@localhost ' (Using password:
YES)

As for the "Open" password, this development is going on a private,
non-networked machine. But thanks for catching the potenial problem.

Now, I hope you folks out there is PHP land can provide some more
suggestions.

Bruce

"Kevin Thorpe" <ke***@pricetra k.com> wrote in message
news:3F******** ******@pricetra k.com...
Tim Van Wassenhove wrote:
On 2003-12-18, Bruce A. Julseth <br*****@attglo bal.net> wrote:
When I issue

mysql> grant all on * to mike identified by 'joented' with grant
option;
Query OK, 0 rows affected (0.69 sec)

It looks like the grant worked.

If i remember well, the manual says that you have to reload...

mysqladmin -u root -p reload


or
mysqladmin -u root -p flush-privileges

... also not that you shouldn't publish passwords so you ought to change

it.

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
1998
by: Martin v. Löwis | last post by:
The Python Software Foundation is seeking grant proposals for projects related to the further development of Python, Python-related technology, and educational resources. The PSF plans to issue calls for proposals regularly. Proposals should be for specific projects with a clear objective, rather than support for ongoing activities. Proposals should be brief (a few pages of text), and they should explain: a. what the objective of the...
2
6084
by: Ralf | last post by:
Hi ! When I insert a new record to a table "table_A" I want to Grant a Role "Role_X" to the User "User_Y". So I made a Trigger who should do this work, but it doesn't: When I write: "GRANT Role_X TO User_Y" in the Trigger: --> my Trigger ist invalid (error = ora-04098) When I declare a varchar-Variable within the trigger, fill it with:
4
99020
by: Amardeep Verma | last post by:
Hi, I have a quick question. Which role/privileges are required before a user can give the statement "GRANT ALL PRIVILEGES"? Thanking you in Advance Have a nice day
0
10582
by: Charles Cantrell | last post by:
I have recently set up mySQL on a Mandrake release of Linux (Version 7 of Mandrake, I believe), using the binary 4.0.13 standard release. The set up and start up all were normal, as far as I could tell, with no warnings or error messages. In nearly all respects, the database appears to be running as expected. I have the book "PHP and mySQL Web Development" by Luke Welling and Laura Thomson, and have been working through the examples...
0
2024
by: Charles Cantrell | last post by:
I have recently set up mySQL on a Mandrake release of Linux (Version 7 of Mandrake, I believe), using the binary 4.0.13 standard release. The set up and start up all were normal, as far as I could tell, with no warnings or error messages. In nearly all respects, the database appears to be running as expected. I have the book "PHP and mySQL Web Development" by Luke Welling and Laura Thomson, and have been working through the examples...
1
3510
by: Gregory Stone | last post by:
I've got a problem where any group or user permissions to the pg_class table aren't being registered by either psql or the JDBC driver. I issue the following command: GRANT ALL ON TABLE pg_class TO GROUP apps; -OR- GRANT ALL ON TABLE pg_class TO sculptor; Both apps and sculptor are valid user and group names respectively. The command executes fine and the following query produces:
3
1772
by: Chris Ochs | last post by:
Is there a shortcut to grant all privileges on a schema and it's objects to a user without having to issue GRANT statements for each individual object in the schema? Given all the possible types of objects I doubt it but thought I would ask just in case there was a way to do it. Chris ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command
2
2986
by: stmfc | last post by:
i have a problem with user creation for mysql db i think the problem stems from string style. GRANT ALL ON newDB.* TO 'test'@'localhost' IDENTIFIED BY 'test'; i am using mysql query browser, and i got the following error:
7
3176
by: MNNovice | last post by:
Please forgive me for this is a long request. I am designing a DB to capture expenses related to Federal Grants and to generate appropriate reports. Each grant starts with a Notice of Grant Award (NOGA) which has 7 parts. Grant Number Grant Title Amendment Number Revision Number Fund Information Apportion Year (AY), could be a single year or multiple year. Grant Amount associated with each Apportion Year.
0
8788
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9476
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9263
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8210
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6751
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4570
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2745
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.