Jump to content

probling when create databse on remote server


popmotsy

Recommended Posts

hii,,I m using shared web hosting,,i m creating a installer script to create database on remote server,,but i always get the warning mesg,,

 

,,Access denied for user 'user'@'host' (using password: NO) in xxxxxxxx installer.php on line 14

Cannot Connected With Database.....

 

can any one know abt this problem,,,please suggest me the proper solution.... :-[

 

thanks..

hiiii....

 

well i told that ,,,i m using shared web hosting,,,and control panel is not provided with that,,,i m just using php script just like that,,,,,

 

<?php

 

$sql[]="create database xxxxx_database";

 

$host = "hostname";

$user = "username";

$dbpassword = "password";

 

$connection = mysql_connect($host, $user, $dbpassword) or die("Cannot Connected With Database");

mysql_select_db("cpv_database", $connection) or die("Database is not selected");

 

for($i=0;$i<count($sql);$i++)

{

$result = mysql_query($sql[$i]) or die('<li>$sql :'.$sql[$i].mysql_error());

echo '<li>'.$i.'sql to run -->:'.$sql[$i].'<br />';

}

 

........

 

and run on the server ,,,and i got that damn warning again and againn.... >:( >:(...

 

 

 

 

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.