Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 06-19-2010, 04:53 PM
SNK2713 SNK2713 is offline
Member
 
Join Date: Jun 2010
Posts: 3
Credits: 509
SNK2713
Default Cannot Connect to MySQL Error

Quote:
[size=x-small]1. Upload all of the files inside of the "adoptables" folder to somewhere on your website, either to the root of your domain or to a subfolder.
You must use a FTP program, such as FireFTP, to upload the files.

2. CHMOD the following files and directories:

inc > config.php to 777
picuploads > gif to 777
picuploads > jpg to 777

3. Create a new MySQL database

4. Go to yoursite.com/folder/install/index.php where yoursite.com is the name of your site and folder is where you uploaded the adoptables files.
Going here will launch the automated installer which will guide you through the rest of the setup process.[/size]
I followed these instructions to install the Rusnak PHP Adoptable script on 000webhost, but when I proceeded to complete the last step I received the following error:

Quote:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/a1916460/public_html/adoptables/inc/functions.php on line 13
I figure it means that it can't find and connect to the MySQL database I created, but I'm not sure how to fix that.
Thank you in advance for any assistance.
Reply With Quote
  #2  
Old 06-20-2010, 01:31 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,642
BMR777 is on a distinguished road
Default RE: Cannot Connect to MySQL Error

Please try running the installer again. It looks like your database details were not properly saved to the config.php file for some reason. I know 000webhost is a bit funky sometimes.
Reply With Quote
  #3  
Old 06-20-2010, 07:19 PM
SNK2713 SNK2713 is offline
Member
 
Join Date: Jun 2010
Posts: 3
Credits: 509
SNK2713
Default RE: Cannot Connect to MySQL Error

Okay, so when I input the database info, I receive the same errors that Wrim received:
Quote:
Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /home/a1916460/public_html/adoptables/inc/functions.php on line 183

Warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/a1916460/public_html/adoptables/index.php on line 80
I tried re-uploading the zip file of the Rusnak Adoptables Script on 000webhost and noticed this error:

Quote:
Warning: ftp_put() [function.ftp-put]: Can't open that file: No such file or directory in /home/manager/public_html/includes/filesystem.inc.php on line 2566
Reply With Quote
  #4  
Old 06-20-2010, 08:40 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,642
BMR777 is on a distinguished road
Default RE: Cannot Connect to MySQL Error

This seems to be an 000webhost issue. See here.
Reply With Quote
  #5  
Old 06-20-2010, 08:42 PM
SNK2713 SNK2713 is offline
Member
 
Join Date: Jun 2010
Posts: 3
Credits: 509
SNK2713
Default RE: Cannot Connect to MySQL Error

Ah okay, thanks, BMR777. I'll go ask them then.

EDIT: I contacted the HelpDesk at 000webhost, and they basically said I should use a different FTP, so I did.

I'm still getting those other two errors though. I know that I'm supposed to fill out some information somewhere, but I'm not sure what exactly.

Error 1:
Quote:
Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /home/a1916460/public_html/adoptables/inc/functions.php on line 183
PHP Code:
// We will be getting our links from the database...
 
$links "";
 
    
$query "SELECT * FROM ".$prefix."links ORDER BY id ASC";
    
$result mysql_query($query);
    
$num mysql_numrows($result); 
Error 2:
Quote:
Warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty in /home/a1916460/public_html/adoptables/index.php on line 80
PHP Code:
$template file_get_contents($file); 
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Random Can't Connect Error? AlexC Questions and Supports 6 09-16-2011 05:57 PM
[ANSWERED!] MySQL will not connect -- and yes, info is correct. periwinkelle Questions and Supports 3 08-04-2010 10:53 AM
MySQL Error sully Questions and Supports 8 12-10-2009 03:18 PM
MySQL error exdiogene Questions and Supports 4 10-25-2009 01:21 PM
Waah...Cannot connect to MySQL D: 3catfish3 Questions and Supports 5 04-27-2009 08:04 AM


All times are GMT -5. The time now is 06:59 PM.

Currently Active Users: 532 (0 members and 532 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636