MySQL server running but can't be found

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default MySQL server running but can't be found

    I get the following message when trying to set up a datasource in CF
    Administrator.

    Connection verification failed for data source: gmfg_fusebox
    []java.sql.SQLException: Communication failure during handshake. Is there a
    server running on localhost:3306?
    The root cause was that: java.sql.SQLException: Communication failure during
    handshake. Is there a server running on localhost:3306?

    MySQL server is running fine when I try to access the databases via MySQL
    Browser but CF can't seem to see it.

    Set up is CF MX PRO 2004 on XP with MySQL. CF running as localhost server.

    Any ideas greatly appreciated.

    Michael van K Guest

  2. Similar Questions and Discussions

    1. ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
      When i try to start my mysql server, i get this error ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'...
    2. I have a flash movie running a http server but it needsto connect to another server in https.
      I have a flash movie running a http server but it needs to connect to another server in https. I am having problems when trying to open the url in...
    3. I have a flash movie running a http server but it needsto connect to another server in https
      I have a flash movie running a http server but it needs to connect to another server in https. I am having problems when trying to open the url in...
    4. No records found for MySQL Table
      Hello, We have a MySQL table that we had been using PHP to query, but now we want to query the table using CF 5.0 on a windows 2000 server. The...
    5. Running PHP and MySQL from a CD
      I know this has been asked before but i cant remember the outcome of the discussion! i want to put a website that runs with PHP and a MySQL...
  3. #2

    Default Re: MySQL server running but can't be found

    On 2005-05-03 16:27:11 -0500, "Michael van K"
    <webforumsuser@macromedia.com> said:
    > I get the following message when trying to set up a datasource in CF
    > Administrator.
    >
    > Connection verification failed for data source: gmfg_fusebox
    > []java.sql.SQLException: Communication failure during handshake. Is
    > there a server running on localhost:3306?
    > The root cause was that: java.sql.SQLException: Communication failure
    > during handshake. Is there a server running on localhost:3306?
    >
    > MySQL server is running fine when I try to access the databases via
    > MySQL Browser but CF can't seem to see it.
    >
    > Set up is CF MX PRO 2004 on XP with MySQL. CF running as localhost server.
    >
    > Any ideas greatly appreciated.
    This has been covered several times before here (or possible in one of
    the other forums)--do a search for MySQL and you should find plenty of
    info. Also do a search on macromedia.com and you'll find a couple of
    technotes related to this.

    Long and short of it is that if you're using MySQL 4.1 the driver the
    ships with CF can't use the password hashing routine in 4.1, so you
    either need to use MySQL's JDBC drivers or change the hashing on your
    passwords in your database.

    Matt
    --
    Matt Woodward
    [email]mpwoodward@gmail.com[/email]
    Team Macromedia - ColdFusion

    mpwoodward *TMM* Guest

  4. #3

    Default Re: MySQL server running but can't be found

    Thanks Matt,

    I did find the jdbc jar on the MySQL website and have tried to install it without much luck.

    Any further help regarding methods of setting it all up?

    Cheers. Michael.
    Michael van K Guest

  5. #4

    Default Re: MySQL server running but can't be found

    I now get this message:

    Unable to instantiate logger class 'com.mysql.jdbc.log.Log4JLogger', exception in constructor?

    Michael van K Guest

  6. #5

    Default Re: MySQL server running but can't be found

    On 2005-05-03 19:35:40 -0500, "Michael van K"
    <webforumsuser@macromedia.com> said:
    > Thanks Matt,
    >
    > I did find the jdbc jar on the MySQL website and have tried to install
    > it without much luck.
    >
    > Any further help regarding methods of setting it all up?
    >
    > Cheers. Michael.
    Just to make sure you saw the most pertinent technote:
    [url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=6ef0253[/url]

    Beyond that you'll have to post exactly how you're setting things up,
    the steps you're going through, the errors you're seeing, etc. to get
    additional assistance. I use MySQL quite a lot with CF so once I see
    where you're getting tripped up I'm sure I can walk you through it.

    Matt
    --
    Matt Woodward
    [email]mpwoodward@gmail.com[/email]
    Team Macromedia - ColdFusion

    mpwoodward *TMM* Guest

  7. #6

    Default Re: MySQL server running but can't be found

    Originally posted by: Newsgroup User
    On 2005-05-03 19:35:40 -0500, "Michael van K"
    <webforumsuser@macromedia.com> said:
    > Thanks Matt,
    >
    > I did find the jdbc jar on the MySQL website and have tried to install
    > it without much luck.
    >
    > Any further help regarding methods of setting it all up?
    >
    > Cheers. Michael.
    Just to make sure you saw the most pertinent technote:

    Class: com.mysql.jdbc.Driver

    Thanks,
    Richard



    EDUYork Guest

  8. #7

    Default Re: MySQL server running but can't be found

    Originally posted by: EDUYork
    Originally posted by: Newsgroup User
    On 2005-05-03 19:35:40 -0500, "Michael van K"
    <webforumsuser@macromedia.com> said:
    <snip>

    This sounds to me like an error in the .class itself.

    For the record, my exact setup is:
    URL: jdbc:mysql://localhost:3306/[DS_Name]
    Class: com.mysql.jdbc.Driver

    Thanks,
    Richard


    My solution was to return to the download site and get the previous stable
    version:
    mysql-connector-java-3.0.16-ga-bin.jar
    worked for me and I now have a verified connection to my MySQL 4.1 database

    Richard

    EDUYork Guest

  9. #8

    Default Re: MySQL server running but can't be found

    Thanks, this finally solved my problem too...

    nic
    nicher Guest

  10. #9

    Default Re: MySQL server running but can't be found

    :D

    This sorted me out as well. Thanks for posting folks.

    Best,
    al
    [url]http://www.prismix.com/[/url]


    Allen Manning Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139