+ Reply to Thread
Results 1 to 9 of 9

Thread: access denied

  1. #1
    onlayn is offline x10Hosting Member onlayn is an unknown quantity at this point
    Join Date
    Jan 2010
    Posts
    6

    access denied

    can some1 help me with these errors?


    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'cossacks.x10hosting.com' (using password: NO) in /home/kendyo/public_html/tides.conf on line 6

    Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/kendyo/public_html/tides.conf on line 7


    here is the code of tides.conf
    ---
    $db_host = "localhost";
    $db_name = "kendyo_cvsutides";
    $db_user = "root";
    $db_pass = "";
    $db_link = mysql_connect($db_host,$db_user,$db_pass);
    mysql_select_db($db_name,$db_link);
    ----

    i will really appreciate if you could help me with this..
    tnx

  2. #2
    Zubair's Avatar
    Zubair is offline x10 Super Spammer Zubair has a reputation beyond reputeZubair has a reputation beyond reputeZubair has a reputation beyond repute
    Join Date
    Jul 2009
    Location
    Pakistan
    Posts
    8,747

    Re: access denied

    Correct this

    PHP Code:
    $db_host "localhost";
    $db_name "kendyo_cvsutides";
    $db_user "kendyo_yourdbuser";
    $db_pass "yourpassword";
    $db_link mysql_connect($db_host,$db_user,$db_pass);
    mysql_select_db($db_name,$db_link); 
    Remember to create new user from database management in cpanel.. if you not created yet..

    and then add user to database with all privileges
    Last edited by Zubair; 01-31-2010 at 11:26 AM.
    Zubair Barkat | Level 2 Tech
    █ 888-X10-9668 - zubair[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004

  3. #3
    onlayn is offline x10Hosting Member onlayn is an unknown quantity at this point
    Join Date
    Jan 2010
    Posts
    6

    Re: access denied

    still the same..i checked the dbase name and dbase user..


    Warning
    : mysql_connect() [function.mysql-connect]: Access denied for user 'kendyo_kendyo'@'cossacks.x10hosting.com' (using password: NO) in /home/kendyo/public_html/tides.conf on line 6

  4. #4
    gamesake is offline x10Hosting Member gamesake is an unknown quantity at this point
    Join Date
    Jan 2010
    Posts
    39

    Re: access denied

    I'm pretty sure you have to have a password.

  5. #5
    Zubair's Avatar
    Zubair is offline x10 Super Spammer Zubair has a reputation beyond reputeZubair has a reputation beyond reputeZubair has a reputation beyond repute
    Join Date
    Jul 2009
    Location
    Pakistan
    Posts
    8,747

    Re: access denied

    (using password: NO)
    You are still not using any password.

    did you create user in database management???
    Last edited by Zubair; 01-31-2010 at 12:18 PM.
    Zubair Barkat | Level 2 Tech
    █ 888-X10-9668 - zubair[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004

  6. #6
    onlayn is offline x10Hosting Member onlayn is an unknown quantity at this point
    Join Date
    Jan 2010
    Posts
    6

    Re: access denied

    yah.i did create a user in the dbase..

    i can view it on my localhost even i dont have password..

  7. #7
    Zubair's Avatar
    Zubair is offline x10 Super Spammer Zubair has a reputation beyond reputeZubair has a reputation beyond reputeZubair has a reputation beyond repute
    Join Date
    Jul 2009
    Location
    Pakistan
    Posts
    8,747

    Re: access denied

    yah.i did create a user in the dbase..

    i can view it on my localhost even i dont have password..
    This is not possible.. because you can`t create user without password..




    open this http://cossacks.x10hosting.com:2082/...sql/index.html to view the database management page
    Attached Thumbnails Attached Thumbnails access denied-dbu.png  
    Last edited by Zubair; 01-31-2010 at 01:08 PM.
    Zubair Barkat | Level 2 Tech
    █ 888-X10-9668 - zubair[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004

  8. #8
    onlayn is offline x10Hosting Member onlayn is an unknown quantity at this point
    Join Date
    Jan 2010
    Posts
    6

    Re: access denied

    okay..now i understand. tnx a lot

    i still have one question left..
    i want to import my dtabase but it always says

    ----#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'þ ' at line 1

    the type of dbase is visual basic

  9. #9
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: access denied

    Quote Originally Posted by onlayn View Post
    i want to import my dtabase
    How are you attempting this? Are you using phpMyAdmin's import feature? (See also the many threads on this topic.)

    Quote Originally Posted by onlayn View Post
    but it always says
    ----#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'þ ' at line 1
    It's rather hard to answer questions about code without seeing it. However, "þ" isn't used in any SQL keyword. Possibilities include: the text isn't an SQL query, there's an unquoted string.

    Quote Originally Posted by onlayn View Post
    the type of dbase is visual basic
    Visual Basic is a programming language, not a database. Are you using something else as a database, or are you storing the data in a datastructure within the VM program?
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

+ Reply to Thread

Similar Threads

  1. access denied
    By onlayn in forum Off Topic
    Replies: 4
    Last Post: 01-31-2010, 12:17 PM
  2. Access denied for database user
    By vivek noronha in forum Free Hosting
    Replies: 3
    Last Post: 10-29-2009, 12:37 PM
  3. 'Access denied' when uploading via FTP
    By jamiek in forum Free Hosting
    Replies: 0
    Last Post: 11-25-2008, 07:14 AM
  4. Website is down
    By JeffreyWalters in forum Free Hosting
    Replies: 17
    Last Post: 11-28-2007, 12:16 PM
  5. INSERT command denied??
    By 1337scape in forum Free Hosting
    Replies: 6
    Last Post: 11-14-2007, 05:15 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