1. #1
    H@voc_!nc.'s Avatar
    Registered
    17/07/02
    Location
    Sint-Jans-Molenbeek
    Posts
    447
    iTrader
    1 (100%)
    Mentioned
    0 Post(s)
    Reputation
    0/0

    mysql: administratie (GRANT) probleem

    Ik heb dus hier op nen aparte pc mysql draaien (pc2)
    nu wil ik van een willekeurige host naar pc2 connecten

    dus ik heb ne GRANT ALL ON *.* TO 'user'@'%' IDENTIFIED BY 'pwd' WITH GRANT OPTION

    maar ik kan dan niet connecten van PCx

    als ik nu:
    GRANT ALL ON *.* TO 'user'@'PCx' IDENTIFIED BY 'pwd' WITH GRANT OPTION

    dan kan ik wel connecten....

    ik dacht dat die % ne wildcard was voor alle hosts ... moet ik nog ergens ne setting veranderen of zo?

    en ik HEB de manual gelezen ben genne n00b geraak er gewoon nie uit
    no votes  

  2. #2
    Dece's Avatar
    Registered
    25/10/02
    Location
    Ninove
    Posts
    829
    iTrader
    0
    Mentioned
    0 Post(s)
    Reputation
    0/0
    in het vervolg graag een prefix en een degelijkere topictitle aub.

    Topic is aangepast
    no votes  

  3. #3

    Registered
    12/10/02
    Location
    mars
    Posts
    14,319
    iTrader
    2 (100%)
    Mentioned
    0 Post(s)
    Reputation
    0/0
    % is gewoon een algemene wildcard vo strings, maar het kan zijn dat daar natuurlijk tekens uitvallen (zoals . in regexes basicly '\n' laat vallen).

    edit: nop, in de manual staat elk character. Kga nu eens specifiek zien voor de GRANT queries.

    /me loves dev.mysql.com:

    MySQL doesn't support wildcards in usernames. Anonymous users are defined by inserting entries with User='' into the mysql.user table or creating a user with an empty name with the GRANT statement:

    mysql> GRANT ALL ON test.* TO ''@'localhost' ...
    Last edited by killgore; 02-09-2004 at 22:32.
    no votes  

  4. #4
    H@voc_!nc.'s Avatar
    Registered
    17/07/02
    Location
    Sint-Jans-Molenbeek
    Posts
    447
    iTrader
    1 (100%)
    Mentioned
    0 Post(s)
    Reputation
    0/0
    as ge nu bvb SELECT a,b,c FROM some_table WHERE a LIKE %;
    dan idd maar hier gaat het over compleet iets anders

    als ge
    USE mysql;
    SELECT host,user FROM user;

    dan ziede

    host user
    ------------------------------------
    % anUser
    localhost anUser

    tis al opgelost kwas gewoon FLUSH privileges vergeten te doen, blijkbaar is da verplicht.
    no votes  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in