[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 11-04-2004, 01:17 PM   #1 (permalink)
NamePros Expert
 
redhippo's Avatar
 
Join Date: Oct 2003
Location: ANForum
Posts: 5,244
3,630.35 NP$ (Donate)

redhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to behold


Talking database connect

Warning: mysql_connect(): Access denied for user: 'box@localhost' (Using password: YES) in /home/lembu/public_html/config.php on line 15
Cannot connect to the database.

whats wrong?
how do i set the mysql data base/\?
__________________
|www.vb-skins.com|- Quality Premade Vbulletin skins for Your VB forum makeover |www.Banjir.com|-Free image hosting?[B]For Sale!|AlphaScripts|Money Generating Scripts
FREE VB Skins
redhippo is offline  
Old 11-04-2004, 01:38 PM   #2 (permalink)
NamePros Regular
 
Join Date: Aug 2003
Location: UK
Posts: 572
136.83 NP$ (Donate)

Tjobbe is on a distinguished road


whats wrong?
how do i set the mysql data base/\?




connecting to the database usually is by enterring your username followed by the db name/ db username:

such as:

username_dbname

username_dbusername

password


if your ftp username is "sitename" and your database is called "frogs", your db username and password are "tanks" and "bangers" resoectively, then it would look like this:

sitename_frogs

sitename_tanks

bangers


hope this helps!
__________________
Web Site Design | Web Designers Blog
Tjobbe is offline  
Old 11-04-2004, 01:50 PM   #3 (permalink)
RJ
NamePros Founder

Administrator

 
Join Date: Feb 2003
Location: Bay Area, CA
Posts: 13,173
104,201.68 NP$ (Donate)

RJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatness

Find Marrow Donors! Cystic Fibrosis
Edit your config.php file and replace the values for database name, database username and password with the correct settings for your database. Those settings are provided to you by your webhost, or setup by you through your web hosting control panel.

For example, code used with PHP to connect to a MySQL database:

PHP Code:
$dbuser = "database username";
$dbpass = "database password";
$dbname = "database name";
$dbhost = "localhost";

mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db($dbname) or die("Unable to select database");
Replace the values for the first three lines with the correct settings for your database.
RJ is offline  
Old 11-04-2004, 04:06 PM   #4 (permalink)
Senior Member
 
OxDomains's Avatar
 
Join Date: Sep 2003
Location: NYC
Posts: 2,512
94.31 NP$ (Donate)

OxDomains has a brilliant futureOxDomains has a brilliant futureOxDomains has a brilliant futureOxDomains has a brilliant futureOxDomains has a brilliant futureOxDomains has a brilliant futureOxDomains has a brilliant futureOxDomains has a brilliant futureOxDomains has a brilliant futureOxDomains has a brilliant futureOxDomains has a brilliant future


let me know if you need some help- i will gladly help you out
__________________
FHAMortgage.us.com is for Sale
OxDomains is offline  
Old 11-05-2004, 01:10 AM   #5 (permalink)
NamePros Expert
 
redhippo's Avatar
 
Join Date: Oct 2003
Location: ANForum
Posts: 5,244
3,630.35 NP$ (Donate)

redhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to behold


thanks all...fixed
__________________
|www.vb-skins.com|- Quality Premade Vbulletin skins for Your VB forum makeover |www.Banjir.com|-Free image hosting?[B]For Sale!|AlphaScripts|Money Generating Scripts
FREE VB Skins
redhippo is offline  
Old 11-07-2004, 07:44 PM   #6 (permalink)
NamePros Expert
 
redhippo's Avatar
 
Join Date: Oct 2003
Location: ANForum
Posts: 5,244
3,630.35 NP$ (Donate)

redhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to behold


have another similiar problem...anyone can help me now?? on msn?
__________________
|www.vb-skins.com|- Quality Premade Vbulletin skins for Your VB forum makeover |www.Banjir.com|-Free image hosting?[B]For Sale!|AlphaScripts|Money Generating Scripts
FREE VB Skins
redhippo is offline  
Old 11-26-2004, 10:49 AM   #7 (permalink)
NamePros Expert
 
redhippo's Avatar
 
Join Date: Oct 2003
Location: ANForum
Posts: 5,244
3,630.35 NP$ (Donate)

redhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to beholdredhippo is a splendid one to behold


Sad Error 1044

Quote:
Originally Posted by -RJ-
Edit your config.php file and replace the values for database name, database username and password with the correct settings for your database. Those settings are provided to you by your webhost, or setup by you through your web hosting control panel.

For example, code used with PHP to connect to a MySQL database:

PHP Code:
$dbuser = "database username";
$dbpass = "database password";
$dbname = "database name";
$dbhost = "localhost";

mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db($dbname) or die("Unable to select database");
Replace the values for the first three lines with the correct settings for your database.

i have done that but i get this now:

Attempting to attach to database

Connect failed: unexpected error from the database.

Error number: 1044

Error description: Access denied for user: 'anforum_perawan@localhost' to database 'anforum_forum'

Please ensure that the database and server is correctly configured and try again.
__________________
|www.vb-skins.com|- Quality Premade Vbulletin skins for Your VB forum makeover |www.Banjir.com|-Free image hosting?[B]For Sale!|AlphaScripts|Money Generating Scripts
FREE VB Skins
redhippo is offline  
Old 11-26-2004, 02:42 PM   #8 (permalink)
Account Closed
 
Sergio965's Avatar
 
Join Date: Apr 2004
Location: ~root
Posts: 1,095
1,505.80 NP$ (Donate)

Sergio965 is a splendid one to beholdSergio965 is a splendid one to beholdSergio965 is a splendid one to beholdSergio965 is a splendid one to beholdSergio965 is a splendid one to beholdSergio965 is a splendid one to beholdSergio965 is a splendid one to behold


Fixed It
Sergio965 is offline  
Old 11-26-2004, 02:43 PM   #9 (permalink)
NamePros Regular
 
CreativeLogic's Avatar
 
Join Date: Sep 2003
Posts: 894
138.00 NP$ (Donate)

CreativeLogic has a spectacular aura aboutCreativeLogic has a spectacular aura about


You need to give that user permissions for that database!
__________________
Online Time Tracking :)
CreativeLogic is offline  
Old 11-26-2004, 08:34 PM   #10 (permalink)
Senior Member
 
Peter's Avatar
 
Join Date: Nov 2003
Location: Scotland
Posts: 4,900
0.60 NP$ (Donate)

Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute

Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
Quote:
Originally Posted by Tjobbe
whats wrong?
how do i set the mysql data base/\?




connecting to the database usually is by enterring your username followed by the db name/ db username:

such as:

username_dbname

username_dbusername

password


if your ftp username is "sitename" and your database is called "frogs", your db username and password are "tanks" and "bangers" resoectively, then it would look like this:

sitename_frogs

sitename_tanks

bangers


hope this helps!

You seem to be assuming he is using cpanel but a database name does not always bear any relation to the account details of the ftp or control panel.
__________________
Manage your portfolio using my new Domain Portfolio Management script.
Securing Your Domain Name From Theft
Peter is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 06:54 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85