How can I spare bandwidth while using the site?
Access rules for users from specific hosts
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > MySQL database development > Access rules for users from specific hosts 24 November 2003 14:05:54

  Top users: 
  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:

Access rules for users from specific hosts

Michael McTernan 24 November 2003 14:05:54
 Hi there,

I'm seeing some problems with the way I've granted access to different
users. I've setup the server to allow access only from certain clients.
For example, the backup user is only allowed access from some machines:

GRANT SELECT ON testdb.* TO backup@127.0.0.1

The problem is that when connecting I must supply a -h option to match the
grant e.g.

[mm1@localhost mm1]$ mysql -u backup
ERROR 1045: Access denied for user: 'backup@localhost' (Using password: NO)
[mm1@localhost mm1]$ mysql -u backup -h 127.0.0.1
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 32 to server version: 4.0.15-standard-log­

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

mysql>

Is there an option to get the MySQL server to resolve localhost to 127.0.0.1
automatically? Or do I just have to use the -h option everywhere? It's not
a big problem for me, but somewhat of an annoyance :(­

Many Thanks,

Mike



--
MySQL General Mailing List
For list archives: http://lists.mysql.­com/mysql
To unsubscribe: http://lists.mysql.­com/mysql?unsub=gcdm­g-mysql@m.gmane.org


Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > MySQL database development > Access rules for users from specific hosts 24 November 2003 14:05:54

see also:
Forms 6i Question - Summary/Formula…
Change in start/end of daylight period
pass tests:
see also:
How to convert MKV to AVI, MP4, WMV…
How to Get Videos from Youtube and Use…
Android or Windows Mobile: which is…

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .