dumb syntax question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    #1

    dumb syntax question

    Hi,
    I apologize for my ignorance. I'm trying to execute a GRANT
    statement giving select to user@host-host.domainname.
    Mysql doesn't like the dash in the hostname, or the dots in an ip.
    I tried various combinations of single and double quotes, but I can't get
    it to work.
    What is the proper syntax. I would appreciate a straight answer- I already
    have the FM.

    Mike


  • Aggro

    #2
    Re: dumb syntax question

    fonzz wrote:[color=blue]
    > Hi,
    > I apologize for my ignorance. I'm trying to execute a GRANT
    > statement giving select to user@host-host.domainname.
    > Mysql doesn't like the dash in the hostname, or the dots in an ip.
    > I tried various combinations of single and double quotes, but I can't get
    > it to work.
    > What is the proper syntax. I would appreciate a straight answer- I already
    > have the FM.[/color]

    For example:

    grant select on databasename.* to user@'host-host.domainname';

    or:

    grant select on databasename.* to user@'192.168.0 .4' identified by
    'password';

    Comment

    • Aggro

      #3
      Re: dumb syntax question

      fonzz wrote:[color=blue]
      > Hi,
      > I apologize for my ignorance. I'm trying to execute a GRANT
      > statement giving select to user@host-host.domainname.
      > Mysql doesn't like the dash in the hostname, or the dots in an ip.
      > I tried various combinations of single and double quotes, but I can't get
      > it to work.
      > What is the proper syntax. I would appreciate a straight answer- I already
      > have the FM.[/color]

      For example:

      grant select on databasename.* to user@'host-host.domainname';

      or:

      grant select on databasename.* to user@'192.168.0 .4' identified by
      'password';

      Comment

      Working...