Closed Thread
Results 1 to 5 of 5

Thread: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'shanksro'

  1. #1
    weloveshanks33 is offline x10Hosting Member weloveshanks33 is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    3

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'shanksro'

    hi i am getting this error
    Code:
    Warning:  mysql_connect() [function.mysql-connect]: Access denied for user 'shanksro'@'int.vital.web7.x10hosting.com' (using password: NO) in /home/shanksro/public_html/register/register.php on line 18
    and i have set it right i think so
    PHP Code:
    mysql_connect("localhost","shanksro,"") 
    This is not whole code please help

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

    Re: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'shanks

    Start with the X10 wiki article on MySQL connection errors.

    The mysql extension is dangerously out of date and on its way to deprecation. Use PDO.
    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.

  3. #3
    weloveshanks33 is offline x10Hosting Member weloveshanks33 is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    3

    Re: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'shanks

    thanks a lot i works

  4. #4
    iearn.tk54's Avatar
    iearn.tk54 is offline x10Hosting Member iearn.tk54 is an unknown quantity at this point
    Join Date
    Apr 2011
    Location
    INDIA,GUJARAT,BARODA
    Posts
    85

    Re: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'shanks

    may be u have not given proper privileges to the user to database
    http://x10hosting.com/forums/image.php?type=sigpic&userid=656420&dateline=13109  96915

  5. #5
    callumacrae's Avatar
    callumacrae is offline not alex mac callumacrae is just really nice
    Join Date
    Dec 2007
    Location
    Wellesbourne, England
    Posts
    5,162

    Re: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'shanks

    Quote Originally Posted by iearn.tk54 View Post
    may be u have not given proper privileges to the user to database
    Please read the whole thread, he's already resolved the issue. I'm going to close this thread now.

    ~Callum
    I can customise your phpBB board. Send me a PM.
    lynxphp - info, tutorials and scripts
    "A forum post should be like a skirt; long enough to cover the subject but short enough to keep things interesting."

Closed Thread

Similar Threads

  1. Replies: 1
    Last Post: 12-01-2010, 01:58 AM
  2. Replies: 2
    Last Post: 10-14-2010, 01:50 PM
  3. Warning: mysql_connect() [function.mysql-connect]:
    By acidkillz2001 in forum Free Hosting
    Replies: 4
    Last Post: 11-15-2007, 01:47 PM
  4. Replies: 0
    Last Post: 11-15-2007, 05:11 AM
  5. Warning: mysql_connect() [function.mysql-connect]:
    By marsmari in forum Free Hosting
    Replies: 3
    Last Post: 11-15-2007, 01:27 AM

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