Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2004
    Location
    Shimonoseki
    Posts
    2,101

    cPanel/WHM setting up remote mysql connection

    I get this error:
    ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-server102.net IDENTIFIED BY 'CloakHPu' WITH GRANT OPTION' at line 1
    Server name is "server1.kanmonline-server102.net". Is hyphen causing the problem?
    If so, is there any solution?
    Any ideas would be appreciated
    Closed for winter...

  2. #2
    Hi.

    Did you try to use IP of the server1.kanmonline-server102.net host instead?

  3. #3
    Join Date
    Dec 2005
    Location
    Internet
    Posts
    1,337
    Please try the following format:

    mysql> grant all privileges on testingg.* to testin@'server1.kanmonline-server102.net' identified by 'tetsd';

    The hyphen will create the problem unless it is not specified within quotes.

Posting Permissions

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