Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Unable to connect to MySQL
Old 01-22-2008, 09:23 PM Unable to connect to MySQL
Junior Talker

Posts: 1
Name: Ron
Trades: 0
PHP 5.2.5 Using a simple script to test connection to MySQL (v5.0.45) installed on this new testbed running Apache 2.2.6 :
" <?php
mysql_connect("localhost", " ", "xxxx") or die(mysql_error());
echo "Connected to MySQL<br />";
?> "
The password is the same one I use when logging to MySQL from the client ( don't know how exactly to assure "username" is other than "no value" ). But I am still getting " Access denied for user 'ODBC'@'localhost' (using password: YES) " ; I've even tried omitting the username argument , no help.
Techron is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-23-2008, 03:20 AM Re: Unable to connect to MySQL
Average Talker

Posts: 21
Trades: 0
This article should help:

http://forge.mysql.com/wiki/Error200...tToMySQLServer
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

jigolo is offline
Reply With Quote
View Public Profile
 
Old 01-23-2008, 05:52 AM Re: Unable to connect to MySQL
taketherisk's Avatar
Skilled Talker

Posts: 89
Name: Brett
Location: New Zealand
Trades: 0
A common problem can simply be forgetting to assign a user to your database in your Cpanel.

Double check your settings in the Cpanel
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
taketherisk is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Unable to connect to MySQL
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.32618 seconds with 12 queries