Error connect mysql

Use this forum if you have problems with a hMailServer script, such as hMailServer WebAdmin or code in an event handler.
Post Reply
milis75
New user
New user
Posts: 12
Joined: 2020-09-17 10:11

Error connect mysql

Post by milis75 » 2020-09-25 06:47

Hi All,

Why I can connect MySql in EvenHeaders.vbs

error hmailserver :
"ERROR" 3020 "2020-09-25 11:23:56.653" "Script Error: Source: Microsoft OLE DB Provider for ODBC Drivers - Error: 80004005 - Description: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified - Line: 226 Column: 0 - Code: (null)"

I have install MariaDB ODBC 3.1

Without ODBC
CNN = "Driver={MariaDB ODBC 3.1 Driver};Server=localhost;Database=roundcubemail;User=user;Password=pw;Option=3;"

With ODBC
CNN ="DSN=dns_round;uid=user;pwd=pw;DATABASE=roundcubemail;"

both of them working at other vbscrtipt ... like test.vbs

but in EvenHeaders.vbs in hmailserver error & not working

User avatar
mattg
Moderator
Moderator
Posts: 21270
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: Error connect mysql

Post by mattg » 2020-09-25 08:00

check the user that the hmailserver SERVICE is running under

That is probably local system account

You may need to create a special user to run hMailserver SERVICE under
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

milis75
New user
New user
Posts: 12
Joined: 2020-09-17 10:11

Re: Error connect mysql

Post by milis75 » 2020-10-23 05:45

I use MariaDB 32 bit ,... so EvenHeaders.vbs working can connect mysql

MariaDB 64 bit can't connect

:lol:

Post Reply