MySql mit Autoit - Fehler

  • Hi Community,

    bei folgendem Script:

    [autoit]


    #include <mysql.au3>

    [/autoit][autoit][/autoit][autoit]

    $UserName = "xxxx"
    $Password = "xxxx"
    $Database = "xxxx"
    $MySQLServerName = "localhost"

    [/autoit][autoit][/autoit][autoit]

    $sql = _MySQLConnect($UserName,$Password,$Database,$MySQLServerName)
    $dbs = _GetDbNames($sql)
    For $i in $dbs
    MsgBox(0,'',$i)
    Next
    _MySQLEnd($sql)

    [/autoit]

    bekomme ich diesen Fehler:
    C:\Program Files\AutoIt3\Include\mysql.au3 (27) : ==> The requested action with this object has failed.:
    $Objconn.open ("DRIVER=" & $sDriver & ";SERVER=" & $sServer & ";DATABASE=" & $sDatabase & ";UID=" & $sUsername & ";PWD=" & $sPassword & ";PORT="&$iPort)
    $Objconn.open ("DRIVER=" & $sDriver & ";SERVER=" & $sServer & ";DATABASE=" & $sDatabase & ";UID=" & $sUsername & ";PWD=" & $sPassword & ";PORT="&$iPort)^ ERROR

    Ich habe schon alles Mögliche durchprobiert.
    -> Die Logindaten stimmen zumindest zu 100%
    -> Der ODBC ist installiert 5.1

    Vielen Dank schonmal!
    Lg Jautois