Jump to content

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.... >:( >:(...

 

 

 

 

 

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.