28, May 2012

mysql error - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: mysql error
« previous next »
Pages: [1] Print

Author Topic: mysql error  (Read 1274 times)
I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« on: Jun 12, 2006, 08:59:31 am »

when I try to use the register.php file I get these errors:

Warning: mysql_connect(): Access denied for user: '***@localhost' (Using password: YES) in /***/classes/access_user/access_user_class.php on line 116

Warning: mysql_select_db(): Access denied for user: '***@localhost' (Using password: NO) in /***/classes/access_user/access_user_class.php on line 117

Warning: mysql_select_db(): A link to the server could not be established in /***/classes/access_user/access_user_class.php on line 117

I have read that these errors exist and that i have to unescape some lines but i tried everything but nothing helps.

Can you please tell me what to do exactly.

Thx
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Jun 12, 2006, 09:03:08 am »

sounds like a wrong connection string...

try localhost.localdomain and not localhost

I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« Reply #2 on: Jun 12, 2006, 09:08:43 am »

didn't work, these are the lines of the error

function connect_db() {
      $conn_str = mysql_connect(DB_SERVER, DB_USER, DB_PASSWORD);
      mysql_select_db(DB_NAME); // if there are problems with the tablenames inside the config file use this row
}

Look at the text after //

But what lines do I have to drop
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Jun 12, 2006, 09:12:07 am »

this is about if your are accessing tables like "databaseName.TableName"

it looks like that your connection settings are still wrong...

I crack Photoshop!
*
Posts: 3
22 credits
Members referred : 0


« Reply #4 on: Jun 12, 2006, 09:17:05 am »

Jeesu&*^# I made a stupid mistake.

You are right it was a connection thing I was still using the old settings for a mysql database I had used earlier when I was testing.

It is solved now.

Thx
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Jun 12, 2006, 12:55:20 pm »

no problem, we're glad to help Wink

Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=2838
Tags : mysql databases Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: mysql error
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 01:03:34 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.