473,396 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Mysql User management

I'm a newbie in mysql and I've a question about user definition in
Mysql.
According to informations collected from manuals I believed that a
user definition specifying host="%" on mysql server 'A' granted me
connection from whatever client (with command "mysql -hA -uuser -p");
but executing that command from server, to say, 'B', mysql denies
access to user@B. The matter can be solved defining a new user with
host B (it's to say user@B), but, in that case what's the meaning of a
generic user@%?
Thanks
Andrea Paventi
Jul 19 '05 #1
6 4972
Lord Asriel wrote:
I'm a newbie in mysql and I've a question about user definition in
Mysql. According to informations collected from manuals I believed
that a user definition specifying host="%" on mysql server 'A' granted
me connection from whatever client (with command "mysql -hA -uuser
-p"); but executing that command from server, to say, 'B', mysql
denies access to user@B. The matter can be solved defining a new user
with host B (it's to say user@B), but, in that case what's the meaning
of a generic user@%?


I've been bothered by the same behavior even though
http://www.mysql.com/doc/en/GRANT.html seems to imply that it is doable:

In order to accommodate granting rights to users from arbitrary
hosts, MySQL supports specifying the |user_name| value in the form
|user@host|. If you want to specify a |user| string containing
special characters (such as `-'), or a |host| string containing
special characters or wildcard characters (such as `%'), you can
quote the user or host name (for example,
|'test-user'@'test-hostname'|).

You can specify wildcards in the hostname. For example,
|user@'%.loc.gov'| applies to |user| for any host in the |loc.gov|
domain, and |user@'144.155.166.%'| applies to |user| for any host in
the |144.155.166| class C subnet.

The simple form |user| is a synonym for |user@"%"|.

Don't know why it doesn't work for you and me.
--
I have seen the truth and it makes no sense.
Jul 19 '05 #2
Lord Asriel wrote:
I'm a newbie in mysql and I've a question about user definition in
Mysql. According to informations collected from manuals I believed
that a user definition specifying host="%" on mysql server 'A' granted
me connection from whatever client (with command "mysql -hA -uuser
-p"); but executing that command from server, to say, 'B', mysql
denies access to user@B. The matter can be solved defining a new user
with host B (it's to say user@B), but, in that case what's the meaning
of a generic user@%?


I've been bothered by the same behavior even though
http://www.mysql.com/doc/en/GRANT.html seems to imply that it is doable:

In order to accommodate granting rights to users from arbitrary
hosts, MySQL supports specifying the |user_name| value in the form
|user@host|. If you want to specify a |user| string containing
special characters (such as `-'), or a |host| string containing
special characters or wildcard characters (such as `%'), you can
quote the user or host name (for example,
|'test-user'@'test-hostname'|).

You can specify wildcards in the hostname. For example,
|user@'%.loc.gov'| applies to |user| for any host in the |loc.gov|
domain, and |user@'144.155.166.%'| applies to |user| for any host in
the |144.155.166| class C subnet.

The simple form |user| is a synonym for |user@"%"|.

Don't know why it doesn't work for you and me.
--
I have seen the truth and it makes no sense.
Jul 19 '05 #3
Lord Asriel wrote:
I'm a newbie in mysql and I've a question about user definition in
Mysql. According to informations collected from manuals I believed
that a user definition specifying host="%" on mysql server 'A' granted
me connection from whatever client (with command "mysql -hA -uuser
-p"); but executing that command from server, to say, 'B', mysql
denies access to user@B. The matter can be solved defining a new user
with host B (it's to say user@B), but, in that case what's the meaning
of a generic user@%?


I've been bothered by the same behavior even though
http://www.mysql.com/doc/en/GRANT.html seems to imply that it is doable:

In order to accommodate granting rights to users from arbitrary
hosts, MySQL supports specifying the |user_name| value in the form
|user@host|. If you want to specify a |user| string containing
special characters (such as `-'), or a |host| string containing
special characters or wildcard characters (such as `%'), you can
quote the user or host name (for example,
|'test-user'@'test-hostname'|).

You can specify wildcards in the hostname. For example,
|user@'%.loc.gov'| applies to |user| for any host in the |loc.gov|
domain, and |user@'144.155.166.%'| applies to |user| for any host in
the |144.155.166| class C subnet.

The simple form |user| is a synonym for |user@"%"|.

Don't know why it doesn't work for you and me.
--
I have seen the truth and it makes no sense.
Jul 19 '05 #4
>
I've been bothered by the same behavior even though
http://www.mysql.com/doc/en/GRANT.html seems to imply that it is doable:

In order to accommodate granting rights to users from arbitrary
hosts, MySQL supports specifying the |user_name| value in the form
|user@host|. If you want to specify a |user| string containing
special characters (such as `-'), or a |host| string containing
special characters or wildcard characters (such as `%'), you can
quote the user or host name (for example,
|'test-user'@'test-hostname'|).

You can specify wildcards in the hostname. For example,
|user@'%.loc.gov'| applies to |user| for any host in the |loc.gov|
domain, and |user@'144.155.166.%'| applies to |user| for any host in
the |144.155.166| class C subnet.

The simple form |user| is a synonym for |user@"%"|.

Don't know why it doesn't work for you and me.


Thanks for your answer even though it doesn't solve the problem it
gives me a hint: I'm going to try defining a "user@%.mydomain.it";
let's see if it works

Andrea Paventi
Jul 19 '05 #5
>
I've been bothered by the same behavior even though
http://www.mysql.com/doc/en/GRANT.html seems to imply that it is doable:

In order to accommodate granting rights to users from arbitrary
hosts, MySQL supports specifying the |user_name| value in the form
|user@host|. If you want to specify a |user| string containing
special characters (such as `-'), or a |host| string containing
special characters or wildcard characters (such as `%'), you can
quote the user or host name (for example,
|'test-user'@'test-hostname'|).

You can specify wildcards in the hostname. For example,
|user@'%.loc.gov'| applies to |user| for any host in the |loc.gov|
domain, and |user@'144.155.166.%'| applies to |user| for any host in
the |144.155.166| class C subnet.

The simple form |user| is a synonym for |user@"%"|.

Don't know why it doesn't work for you and me.


Thanks for your answer even though it doesn't solve the problem it
gives me a hint: I'm going to try defining a "user@%.mydomain.it";
let's see if it works

Andrea Paventi
Jul 19 '05 #6
>
I've been bothered by the same behavior even though
http://www.mysql.com/doc/en/GRANT.html seems to imply that it is doable:

In order to accommodate granting rights to users from arbitrary
hosts, MySQL supports specifying the |user_name| value in the form
|user@host|. If you want to specify a |user| string containing
special characters (such as `-'), or a |host| string containing
special characters or wildcard characters (such as `%'), you can
quote the user or host name (for example,
|'test-user'@'test-hostname'|).

You can specify wildcards in the hostname. For example,
|user@'%.loc.gov'| applies to |user| for any host in the |loc.gov|
domain, and |user@'144.155.166.%'| applies to |user| for any host in
the |144.155.166| class C subnet.

The simple form |user| is a synonym for |user@"%"|.

Don't know why it doesn't work for you and me.


Thanks for your answer even though it doesn't solve the problem it
gives me a hint: I'm going to try defining a "user@%.mydomain.it";
let's see if it works

Andrea Paventi
Jul 19 '05 #7

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

Similar topics

0
by: John R | last post by:
I found this old thread while looking for some type of compression solution myself. Long story short, I contacted Lester and ended up writing an LZO solution just as Mark had mentioned below....
1
by: David | last post by:
Hi, I have a quick question. I have a .asp application in which certain parts, clients can now edit/update/add information to their records in our DB. I basically use an include statement at...
175
by: Sai Hertz And Control Systems | last post by:
Dear all, Their was a huge rore about MySQL recently for something in java functions now theirs one more http://www.mysql.com/doc/en/News-5.0.x.html Does this concern anyone. What I...
11
by: AnhTai | last post by:
Hi all, I've just installed MySQL 5.0 on my sun box (runing Solaris 10, install from blastwave). This is my first time with MySQL so I don't have any exp with it. I have some troubles as: -...
6
Atli
by: Atli | last post by:
This is an easy to digest 12 step guide on basics of using MySQL. It's a great refresher for those who need it and it work's great for first time MySQL users. Anyone should be able to get...
0
JamieHowarth0
by: JamieHowarth0 | last post by:
I have been trying to find a solution to this on the Internet for months. Literally, ages and ages and ages, praying that someone in the open-source community has enough knowledge to put together an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.