Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6880039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:55:24+00:00 2026-05-27T04:55:24+00:00

some comments preceding a mysql_connect statement are telling me to modify the values/variable name

  • 0

some comments preceding a mysql_connect statement are telling me to modify the values/variable name to my installation. I’m using xamp and looking in php.ini right now. don’t really know where the problem is. please advise. Thanks.

php:

$dbhost = 'localhost'; //unlikely to require changing.
$dbname ='publication'; //moify these
$dbuser = 'username'; //variables 
$dbpass = 'password'; //// to your installation
$appname = 'Robot City'; // and preference

mysql_connect($dbhost, $dbuser, $dbpass) or die(mysql_error());

error message:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'username'@'localhost' (using password: YES) in C:\xampp\htdocs\ajaxpagination\testpage.php on line 10
Access denied for user 'username'@'localhost' (using password: YES)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:55:25+00:00Added an answer on May 27, 2026 at 4:55 am

    Instead of looking into php.ini you have to look into your XAMPP documentation.
    I am sure it contains database credentials you have to use.

    As a wild guess try to use

    $dbname ='test'; //moify these
    $dbuser = 'root'; //variables 
    $dbpass = '';
    

    But again – refer to the documentation for the actual values.

    There is also a chance that you entered them yourself upon the process of the XAMPP installation.

    Note that I have never seen this application in my life. I am writing only out of the general idea of how most applications work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking for some comments on Magnolia CMS. Is there anybody out there
I have some comments about the OAuth draft RFC (specifically about some errors it
I am writing to clarify some comments on this website. 1) I know that
I need to leave some instructional comments for other developers on a page/user control.
After reading a couple of answers and comments on some SQL questions here, and
I have an xml in which i have stored some html under comments like
I have multiple programmers contributing examples for javadocs and some examples contain comments formatted
Some of my colleagues use special comments on their bug fixes, for example: //
I have some source files that have comments written in Japanese. When I open
I'm optimizing some frequently run Perl code (once per day per file). Do comments

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.