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 08-03-2010, 10:32 AM
periwinkelle periwinkelle is offline
Member
 
Join Date: Aug 2010
Posts: 2
Credits: 511
periwinkelle
Default [ANSWERED!] MySQL will not connect -- and yes, info is correct.

I can't get mysql to connect to my database. I have installed php programs before [phpbb3 in particular, as well as tiki wiki] with absolutely no problems. I know for a fact that my host, password, user, and database are correct, as I have used the same settings in the past. However, to my frustration, nothing I do will make the installer connect to my database:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'usergoeshere'@'localhost' (using password: YES) in /placeholdertext/clickable/inc/functions.php on line 13
Error connecting to MySQL

I originally set up the database and connected the user by hand, since I'm familiar with MySQL. Then I used the wizard. Then I used the wizard again to set up a new database, and that didn't work either.

I see people repeatedly suggesting that people with this same problem 'put the correct username and password in config.php'. However, my config.php file is entirely blank. I suspect this could be the issue, but how am I supposed to fix this? what should be in config.php? my installer isn't writing to it [but yes, it is CHMODed to 777]...

Any and all help appreciated.
Reply With Quote
  #2  
Old 08-04-2010, 03:14 AM
PokePets PokePets is offline
Premium Member
 
Join Date: Jun 2010
Posts: 228
Gender: Male
Credits: 19,357
PokePets
Default RE: MySQL will not connect -- and yes, info is correct.

Config.php;
PHP Code:
<?php
//Rusnak PHP Adoptables Site Configuration File

$dbhost ' YOUR HOST';              //DB Hostname
$dbuser ' DATABASE USER';            //DB User
$dbpass 'DATABASE PASSWORD';            //DB Password
$dbname ' DATABASE NAME';                //Your database name
$domain ' DOMAIN';                //Your domain name (No http, www or . )
$scriptpath '/FOLDER';        //The folder you installed this script in
$prefix 'adopts_';                

?>
:D
Reply With Quote
  #3  
Old 08-04-2010, 08:18 AM
periwinkelle periwinkelle is offline
Member
 
Join Date: Aug 2010
Posts: 2
Credits: 511
periwinkelle
Default RE: MySQL will not connect -- and yes, info is correct.

THANKS! I copy + pasted, edited, and it seems to be working now.
Reply With Quote
  #4  
Old 08-04-2010, 10:53 AM
PokePets PokePets is offline
Premium Member
 
Join Date: Jun 2010
Posts: 228
Gender: Male
Credits: 19,357
PokePets
Default RE: [ANSWERED!] MySQL will not connect -- and yes, info is correct.

Nice :D!
Reply With Quote
Reply


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
Displaying Info on Level Up Page? Hwona Questions and Supports 0 06-07-2014 11:51 AM
Finding FTP login info with 000webhost.com RoconzaArt Tutorials and Tips 3 02-26-2011 01:34 AM
Can't Connect alonaria Feedback and Suggestions 13 01-17-2011 10:32 AM
Cannot Connect to MySQL Error SNK2713 Questions and Supports 4 06-20-2010 08:42 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 02:36 PM.

Currently Active Users: 9892 (0 members and 9892 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