im still having troublem with Coossack

Status
Not open for further replies.

thekill11

New Member
Messages
7
Reaction score
0
Points
0
after cossack was rebooted yestoday my site was able to be reach but it would allow me to access it i get
an error page when i tried to go there.

my sever is cossack
im running SMF Forum and i looked through there site and they said it happened when there is
something wrong with MYSQL. i tried changing the database under mysql and then adding the info under
my setting.in on my smf files but my site is still not available.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Edit in the details as they are in your SMF config file and try this script.

PHP:
<?php

DEFINE ('DB_HOST', 'localhost' );
DEFINE ('DB_USER', 'cpanelusername_dbuser');
DEFINE ('DB_PASSWORD' , "secretWordHere" );
DEFINE ('DB_NAME', "cpanelusername_dbname" );

$link = @mysqli_connect(  DB_HOST , DB_USER , DB_PASSWORD , DB_NAME  );

if (!$link)
  { 
   // allow script using this to decide what to do
   $failure = true ;
   $failure_reason =  mysqli_connect_error();
   $failure_no = mysqli_connect_errno() ;

   echo "Connection failed: $failure_reason  Error Number: $failure_no";

  } else {

   echo "Success!" ;
   mysqli_close( $link ) ;
  }

?>

Alternatively, use phpMyAdmin to drop and delete the db_user and then recreate him and add him back again to the SMF db. If you change the password, remember to change it in the SMF config file too.
 
Last edited:
Status
Not open for further replies.
Top