Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Problems conncting MySQL
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problems conncting MySQL

 Post Reply Post Reply
Author
lydbury View Drop Down
Groupie
Groupie


Joined: 12 January 2004
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote lydbury Quote  Post ReplyReply Direct Link To This Post Topic: Problems conncting MySQL
    Posted: 09 June 2006 at 4:14pm
I have been running the access version for years and years - but now have MySQL available. So I am quite new to MySQL. Am using PHPMyAdmin. All this is on a remote server. PHPMYAdmin is setting up an empty database fine. I have edited the database_connection.asp file. Now I am trying to use mySQL-server_setup.asp and that is where I start getting problems.

In brief:

I have made an empty database named grammar.

I have set up:

        strSQLServerName = "localhost" 'Holds the name of the SQL Server (This is the name/location or IP address of the SQL Server)
        strSQLDBUserName = "username" 'Holds the user name (for SQL Server Authentication)
        strSQLDBPassword = "password" 'Holds the password (for SQL Server Authentication)
        strSQLDBName = "grammar"

in the database_connection.asp



Then I go to mySQL_server_setup.asp and enter the username and password and I get:

Error Connecting to database on mySQL Server

Check the following is set up and correct:-

mySQL Server User Name
mySQL Server Password
Name of the mySQL Server
Database name set up by you on the server
Empty Database set up by you on the mySQL Server

Check also that you have entered the correct details in the file 'database_connection.asp' found in the 'database' directory.


Can't see what I have done wrong. Grateful for any ideas you might have

Duncan



Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2006 at 4:23pm
Make sure the details of the mySQL database are entered correctly.

Check with your web hosts you can use 'loclahost' to connect to the server.
Back to Top
angel View Drop Down
Newbie
Newbie
Avatar

Joined: 16 February 2006
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote angel Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2006 at 5:14pm
he did not changed the name of the server to his own server and the db name to his own.
Back to Top
lydbury View Drop Down
Groupie
Groupie


Joined: 12 January 2004
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote lydbury Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2006 at 6:13pm
localhost was the name given me by the ISP. And I did change the dbName to "grammar".

But I am checking with the ISP. All thoughts most welcome.

Back to Top
lydbury View Drop Down
Groupie
Groupie


Joined: 12 January 2004
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote lydbury Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2006 at 9:50pm
The ISP says:

You can connect to localhost (the fact phpMyAdmin can proves that).

Looking at your server the database also looks OK.

My database_connection.asp file seems fine - so I am totally confused. The ISP is looking at my files but I would still be very grateful for any thoughts.

Duncan




Back to Top
lydbury View Drop Down
Groupie
Groupie


Joined: 12 January 2004
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote lydbury Quote  Post ReplyReply Direct Link To This Post Posted: 10 June 2006 at 6:08pm
Now working fine - ISP uninstalled and reinstalled the ODBC drivers. Sorted.

Duncan


Edited by lydbury - 11 June 2006 at 5:24pm
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.