+ Reply to Thread
Results 1 to 3 of 3

Thread: mysql_connect () Access denied for user 'dzodzo_nikola'@'10.33.248.80'

  1. #1
    Join Date
    Dec 2010
    Posts
    2

    mysql_connect () Access denied for user 'dzodzo_nikola'@'10.33.248.80'

    Please help.

    It's my site http://shiitake.pcriot.com/ but it doesn't work.
    Error

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'dzodzo_nikola'@'10.33.248.80' (using password: YES) in /home/dzodzo/public_html/konekcija.php on line 7

    occured.

    This is file 'konekcija.php':
    PHP Code:
    <?php
                              $server
    ="???";
                               
    $user="dzodzo_nikola";
                               
    $pass="";
                               
    $db_name="dzodzo_sitake";
                               
                               
    $conn=mysql_connect($server$user ,$pass); 
                               if(!
    $conn){
                                   echo
    "Server error!!!";
                                   exit;
                                }
                               
    $baza=mysql_select_db($db_name,$conn);
                               if(!
    $baza){
                                   echo
    "DB error!!!";
                                   exit;
                                }
    ?>
    Can somebody tell me what to write in SERVER, USER and PASS fields, please.
    My server is starka.
    Username on cPanel is dzodzo.
    Database username is dzodzo_nikola.

    Thanks. Greetings from Serbia.

  2. #2
    vishal's Avatar
    vishal is offline -::-X10 Guru-::- vishal has a brilliant futurevishal has a brilliant future
    Join Date
    Nov 2009
    Location
    INDIA
    Posts
    5,254

    Re: mysql_connect () Access denied for user 'dzodzo_nikola'@'10.33.248.80'

    Check the PRIVILEGES of your db user.You can check it from your Cpanel
    Regards ~ Vishal
    Giving Reputation (at bottom of my post ) is the best way to encourage the person who helped you on forums.

  3. #3
    Gonrah's Avatar
    Gonrah is offline x10Hosting Member Gonrah is an unknown quantity at this point
    Join Date
    Sep 2010
    Location
    Earth
    Posts
    95

    Re: mysql_connect () Access denied for user 'dzodzo_nikola'@'10.33.248.80'

    I use that code:

    PHP Code:
    $host "localhost"
    $user "dzodzo_nikola"
    $pass ""//
    $bd "dzodzo_sitake";

    $connect mysql_connect($host$user$pass);
    mysql_select_db($bd$connect) or die (mysql_error()); 
    Your should look like this:

    PHP Code:
     $server="localhost";
                               
    $user="dzodzo_nikola";
                               
    $pass="";
                               
    $db_name="dzodzo_sitake";
                               
                               
    $conn=mysql_connect($server$user ,$pass); 
                               if(!
    $conn){
                                   echo
    "Server error!!!";
                                   exit;
                                }
                               
    $baza=mysql_select_db($db_name,$conn);
                               if(!
    $baza){
                                   echo
    "DB error!!!";
                                   exit;
                                } 

+ Reply to Thread

Similar Threads

  1. Access denied for user 'user'@'localhost' (using password: YES)
    By elnasiru96 in forum Programming Help
    Replies: 4
    Last Post: 12-01-2010, 09:30 AM
  2. Replies: 1
    Last Post: 12-01-2010, 01:58 AM
  3. mysql_connect() gives error Access denied
    By sles_forum in forum Free Hosting
    Replies: 1
    Last Post: 07-01-2010, 07:14 AM
  4. Warning: mysql_connect(): Access denied?
    By _Xero_ in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 01-29-2006, 08:40 AM
  5. Warning: mysql_connect(): Access denied?
    By _Xero_ in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 01-28-2006, 10:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers