Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - mysql on localhost
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

mysql on localhost

 Post Reply Post Reply
Author
RCorr View Drop Down
Groupie
Groupie


Joined: 21 January 2003
Status: Offline
Points: 126
Post Options Post Options   Thanks (0) Thanks(0)   Quote RCorr Quote  Post ReplyReply Direct Link To This Post Topic: mysql on localhost
    Posted: 27 August 2005 at 12:09pm
hello,

 

I have been searching the web for documentations on connecting to a mysql database through a website on localhost.  Does anyone know a web site that provides an easy straight forward step-by-step tutorial?

 

Do I need to move mysql db from c drive to the wwwroot folder? If so, where do I place it?  Or can I connect to it where it is currently resides at C:\Program Files\MySQL\MySQL Server 4.1\bin\?

 

Any help will be appreciated,
 
Ronan
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 27 August 2005 at 1:49pm
You should not have to move anything. For a local DB you can simply connect like
DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=myDatabase;USER=myUsername;PASSWORD=myPassword;OPTION=3
 
Back to Top
RCorr View Drop Down
Groupie
Groupie


Joined: 21 January 2003
Status: Offline
Points: 126
Post Options Post Options   Thanks (0) Thanks(0)   Quote RCorr Quote  Post ReplyReply Direct Link To This Post Posted: 27 August 2005 at 2:52pm
Thanks Michael,
 
I am making progress with connecting to a mysql db on localhost, but not quite there yet.  I have downloaded MySQL ODBC 3.51 and now following the steps on this page http://dev.mysql.com/doc/mysql/en/dsn-on-windows.html to connect to a mysql database.  I have not created a new user and password, so I am using root as the username and the password field is blank.
 
this is what I have:
Data Source name: myODBC
Description:test
Server: localhost
User: root
Password:
Database: fruits
 
When I click the test connection button this is the error I get:
 
[MySQL][OBDC 3.51 Driver]Can't connect to MYSQL server on 'localhost'
 
 
I tried testing the connection again after running MYSQL, but I get the same error.  Any futhur assistant will be appreciated.
 
Thanks,
 
RPCorr
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 28 August 2005 at 11:01pm
Is the mySQL service running? Are you able to connect with any client tools?
Back to Top
RCorr View Drop Down
Groupie
Groupie


Joined: 21 January 2003
Status: Offline
Points: 126
Post Options Post Options   Thanks (0) Thanks(0)   Quote RCorr Quote  Post ReplyReply Direct Link To This Post Posted: 29 August 2005 at 11:42am

Michael,

I checked the window services pane and MySQL41 status reads  "started".  I am not sure what you mean if I am "able to connect with any client tools?" The only way I know how to connect to MySQL is by opening the  MySQL server 4.1 command prompt.
 
RCorr
Back to Top
zaboss View Drop Down
Senior Member
Senior Member


Joined: 20 August 2002
Location: Romania
Status: Offline
Points: 454
Post Options Post Options   Thanks (0) Thanks(0)   Quote zaboss Quote  Post ReplyReply Direct Link To This Post Posted: 29 August 2005 at 1:35pm
There are several tools available, including one on the MySQL webpage, mySQL Administrator, similar to Enterprise Manager for MS SQL. I use MySQL Front. It was discontinued, but I got used to it and it's all I need.

Cristian Banu
Soft 4 web
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.