Visualizzazione dei risultati da 1 a 5 su 5
  1. #1
    Utente di HTML.it
    Registrato dal
    Jul 2011
    Messaggi
    35

    Aruba: problemi connessione MySQL

    Ho sempre usato hosting windows Aruba + ASP 3.0 + MySQL

    Ho cambiato dominio l'altro giorno e travasato il codice. Ora però mi dà questo errore:
    Microsoft OLE DB Provider for ODBC Drivers error '80004005'

    [TCX][MyODBC]Client does not support authentication protocol requested by server; consider upgrading MySQL client
    Su tale codice:
    codice:
    Set Conn = Server.CreateObject("ADODB.Connection")
    pippo = "DRIVER=mySQL;server=...;Db=...;UID=...;PWD=...;" 
    Conn.Open(pippo)
    data = NOW()
    data_next = DateAdd("d", 7, data)
    strsql = "INSERT INTO membri ( ... ) Values (...)"
    Conn.Execute strsql

  2. #2
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    Chiedi loro quale versione del client odbc hanno installato.

    Roby

  3. #3
    Utente di HTML.it
    Registrato dal
    Jul 2011
    Messaggi
    35
    Mi hanno detto:
    verifichi di usare il driver=MySQL ODBC 3.51 per la connession
    cosa dovrebbe cambiare?

  4. #4
    Utente di HTML.it
    Registrato dal
    Jul 2011
    Messaggi
    35
    UP

    Ho modificato in questo modo:
    codice:
    Set Conn = Server.CreateObject("ADODB.Connection")
    pippo = "DRIVER={MySQL ODBC 3.51 Driver}; SERVER=xxx; DATABASE=xxx; UID=xxx;PASSWORD=xxx; OPTION=3" 
    Conn.Open(pippo)
    Ma il problema resta.

  5. #5
    Utente di HTML.it L'avatar di klinik
    Registrato dal
    Mar 2003
    Messaggi
    140
    Prova con

    '::::::::::::::::::::::::: Connessione database MySQL

    ' UPDATE THESE VALUES for MySQL ******************************************
    MySQLSVR = "00.00.00.00" ' enter IP or hostname of MySQL server
    MySQLPRT = 3306 ' enter MySQL port (default 3306)
    MySQLUID = "Sql0000" ' enter Username (between quotes)
    MySQLPWD = "00000" ' enter Password (between quotes)
    MySQLDB = "Sql0000_1" ' enter Active DataBase (between quotes)
    MySQLOPT = 16387 'enter MyODBC options values (at least 16387)
    ' END OF UPDATE ************************************************** ********

    ' MySQL Version
    Conn_String = "driver={MySQL ODBC 3.51 Driver};server="&MySQLSVR&";port="&MySQLPRT&";"_& "uid="&MySQLUID&";pwd="&MySQLPWD&";database="&MySQ LDB&";option="&MySQLOPT&""

    Set conn = Server.CreateObject("ADODB.Connection")
    Set rs = Server.CreateObject("ADODB.RecordSet")
    conn.open Conn_String

    Gabriele ;-)

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.