Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Connecting de mysql db
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Connecting de mysql db

 Post Reply Post Reply
Author
Ivar View Drop Down
Groupie
Groupie


Joined: 24 November 2002
Location: Netherlands
Status: Offline
Points: 114
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ivar Quote  Post ReplyReply Direct Link To This Post Topic: Connecting de mysql db
    Posted: 02 December 2006 at 1:19pm
I'm trying connecting de software to the mysql database, but is does not goes swell..

Let say these are the stats:
Servername: mysql.aaa.com
username:aaa
Password: 1234
db name: aaa

Is it correcly to edit in the database connection:


_____________
 
strSQLServerName = "mysql.aaa.com" 'Holds the name of the SQL Server (This is the name/location or IP address of the SQL Server)

strSQLDBUserName = "aaa" 'Holds the user name (for SQL Server Authentication)

strSQLDBPassword = "1234" 'Holds the password (for SQL Server Authentication)

strSQLDBName = "aaa" 'Holds the name of the database

'Initilise the DB Connection String

strCon = "Server=mysql.aaa.com" & strSQLServerName & ";User ID=aaa" & strSQLDBUserName & ";Password=1234" & strSQLDBPassword & ";Database=aaa" & strSQLDBName & ";"

End If

______________
 
Something I do wrong, but what ?!?
 
 
 
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 02 December 2006 at 2:27pm
  1. What is the error you are getting?
  2. Have you already created an empty db with those credentials?

Lead me not into temptation... I know the short cut, follow me.
Back to Top
Ivar View Drop Down
Groupie
Groupie


Joined: 24 November 2002
Location: Netherlands
Status: Offline
Points: 114
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ivar Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2006 at 8:48am
1: I get the following error:

Server Error in Forum Application
An error has occured while connecting to the database.
Please contact the forum administrator.

Support Error Code:- err_mySQL_db_connection
File Name:- common.asp

Error details:-
Microsoft OLE DB Provider for ODBC Drivers
[MySQL][ODBC 3.51 Driver]Unknown MySQL server host 'mysql.aaa.commysql.aaa.com' (11001)
 
I don't understand how the double got there ? 
 
2: Well, my provider did that yes and gave me the the stats I used...
 


Edited by Ivar - 03 December 2006 at 8:48am
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2006 at 6:05pm
Change
strCon = "Server=mysql.aaa.com" & strSQLServerName

To
strCon = "Server=" & strSQLServerName


Lead me not into temptation... I know the short cut, follow me.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 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 Notice

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 at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

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