Won't Install Won't Install
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Won't Install

Started by SteveToms, March 24, 2005, 02:28:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

SteveToms

Could not create a mySQL connection, please check the SQL values entered

MySQL error was : Unknown MySQL server host '*** ' (1

Tranz

Have you confirmed with your webhost that the settings are correct?

SteveToms

I have installed phpbb and php nuke so yes. This is just a new db

kegobeer

Make a test php file with this:

<?php
$localhost 
'your host name';
$mysql_user 'your mysql user name';
$mysql_password 'your mysql password';
$mysql_database 'your mysql database name';

$link mysql_connect($localhost$mysql_user$mysql_password);
if (!
$link) {
   die(
'Could not connect: ' mysql_error());
}
echo 
'Connected successfully<br />';

$db_selected mysql_select_db($mysql_database$link);
if (!
$db_selected) {
   die (
'Can\'t use ' $mysql_database ': ' mysql_error());
}
mysql_close($link);
?>


Put in your information.  Do you get a connection?
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

SteveToms

I got it too work, new db created. I guess my other one did not want to work

btos

I wish I could understand how this fix was done. How is the php file named and where does it go? I have a similar problem and have been trying for hours to find an answer and this is about as close as I have come yet.