Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - Trouble setting up database connection MySql
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Trouble setting up database connection MySql

 Post Reply Post Reply
Author
guitarblogger.dk View Drop Down
Newbie
Newbie


Joined: 10 January 2015
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote guitarblogger.dk Quote  Post ReplyReply Direct Link To This Post Topic: Trouble setting up database connection MySql
    Posted: 10 January 2015 at 9:03pm
Hi

I have Unoeuro account with a MySql database where I try to setup the forum software.

I have tried testing with both the 3.51 and 5.1 myODBC Database Drivers and both fail with:

Microsoft OLE DB Provider for ODBC Drivers
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

From the Unoeuro support pages they have this example on a MySql connection:

<%
SQLserveradr="mysql3.unoeuro.com"
SQLdatabase="my database"
SQLlogin="my login"
SQLpassword="password"

Set Conn = Server.CreateObject("ADODB.Connection")

conStr = "driver={MySql};server="& SQLserveradr &";database="& SQLdatabase
conStr = conStr & ";uid="& SQLlogin &";pwd="& SQLpassword & ";OPTION=3"

Conn.Open conStr
%>
So I guess I can change the setup_database_connection.asp to reflect this.

I have some noobish experience in classic asp and sql (using access databases).

But I am little at loss of where exactly to make the change? 








Edited by guitarblogger.dk - 11 January 2015 at 9:04am
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Online
Points: 9791
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 12 January 2015 at 8:42am
The error means that the myODBC 3.51 or myODBC 5.1 database driver is not installed on the server.

One of tehse driverrs is required in order for Classic ASP to be able to connect to a mySQL Database.

You should contact the server admin and ask that they installed one of the drivers below on the server:-

myODBC 3.51
myODBC 5.1
Back to Top
AllMor View Drop Down
Groupie
Groupie
Avatar

Joined: 16 April 2010
Location: Denmark
Status: Offline
Points: 70
Post Options Post Options   Thanks (1) Thanks(1)   Quote AllMor Quote  Post ReplyReply Direct Link To This Post Posted: 14 January 2015 at 9:16am
Hi,
 
I use UnoEuro and when I launched my forum http://forum.excel-regneark.dk  I had the same problem as you.
 
The solution was removing the drivers version mySQL sting.
 
So, in the files:
  • setup_db_con_test.asp
  • setup_database_connection.asp
  • \database\database_connection.asp
you have the change the string:
strCon = "Driver={MySQL ODBC " & strMyODBCDriver & " Driver};Port=3306;Option=3;Server=" & strSQLServerName & ";User ID=" & strSQLDBUserName & ";Password=" & strSQLDBPassword & ";Database=" & strSQLDBName & ";"
to
strCon = "Driver={MySQL};Option=3;Server=" & strSQLServerName & ";User ID=" & strSQLDBUserName & ";Password=" & strSQLDBPassword & ";Database=" & strSQLDBName & ";"
 
At this time I think i'ts the only way to make it Work with UnoEuro.
 
 
Back to Top
guitarblogger.dk View Drop Down
Newbie
Newbie


Joined: 10 January 2015
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote guitarblogger.dk Quote  Post ReplyReply Direct Link To This Post Posted: 15 January 2015 at 8:26pm
Originally posted by AllMor AllMor wrote:

Hi,
 
I use UnoEuro and when I launched my forum http://forum.excel-regneark.dk  I had the same problem as you.
 
The solution was removing the drivers version mySQL sting.
 
So, in the files:
  • setup_db_con_test.asp
  • setup_database_connection.asp
  • \database\database_connection.asp
you have the change the string:
strCon = "Driver={MySQL ODBC " & strMyODBCDriver & " Driver};Port=3306;Option=3;Server=" & strSQLServerName & ";User ID=" & strSQLDBUserName & ";Password=" & strSQLDBPassword & ";Database=" & strSQLDBName & ";"
to
strCon = "Driver={MySQL};Option=3;Server=" & strSQLServerName & ";User ID=" & strSQLDBUserName & ";Password=" & strSQLDBPassword & ";Database=" & strSQLDBName & ";"
 
At this time I think i'ts the only way to make it Work with UnoEuro.
 

^^Thanks!^^

This worked like a charm. 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.