Problems Connecting with Database

Status
Not open for further replies.

shentaichi

New Member
Messages
4
Reaction score
0
Points
0
Worked last time, and it works on my home server, but it wont work this time, has something changed?

<?php
/**
* connection settings
* replace with your own hostname, database, username and password
*/
$hostname_conn = "localhost";
$database_conn = "taichi_shentaichi";
$username_conn = "taichi_shentai";
$password_conn = "********";
$conn = mysql_pconnect($hostname_conn, $username_conn, $password_conn) or trigger_error(mysql_error(),E_USER_ERROR);
mysql_select_db($database_conn, $conn);
mysql_query("SET NAMES 'utf8'");
?>

- Stephen Brown
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Double check to make sure the dbuser is linked to the database and that it has ALL PERMISSION .
 

shentaichi

New Member
Messages
4
Reaction score
0
Points
0
Yes it has all permissions, and its still not connecting.
 
Last edited:

shentaichi

New Member
Messages
4
Reaction score
0
Points
0
No Further Support Needed,

Problem was in the database,
an export or import problem,
all sorted out now.
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Since Your problem is resolved Now. I am going to close this thread to mark it as resolved. Feel free to create a new thread if you need more help.

***Thread Closed***
 
Status
Not open for further replies.
Top