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 6169835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:55:30+00:00 2026-05-23T22:55:30+00:00

I have recently started exploring free hosting sites where they provide free mysql and

  • 0

I have recently started exploring free hosting sites where they provide free mysql and php.

I have created a database and trying to connect to the database from php script. But while running the php. I am getting following error :

Warning: mysql_connect() [function.mysql-connect]: Access denied for user ‘a1696486_test ‘@’localhost’ (using password: YES) in /home/a1696486/public_html/myphp/test1.php on line 2

Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user ‘a1696486’@’localhost’ (using password: NO) in /home/a1696486/public_html/myphp/test1.php on line 3

Any idea whats the problem ?

Regards,
Shankar

  • 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-23T22:55:31+00:00Added an answer on May 23, 2026 at 10:55 pm

    I have this issue on our dedicated servers, and the solution for me is to provide the fully qualified domain name rather than ‘localhost’. For exmaple, my connection is:

    mysqli_connect('dedi81.jnb1.host-h.net', 'user', 'pass', 'db');
    

    Where even though localhost is the same as dedi81.jnb1.host-h.net (MySQL server and web server on one machine) I – for some reason – cannot use ‘localhost’.

    Another issue may be that on the hosting company you’re with, they have not granted to you the correct permissions, or that there is indeed an error with the username and / or password.

    You can also try and substitute ‘localhost’ with the IP address of the MySQL machine.

    Kind regards,
    Simon

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

Sidebar

Related Questions

I have recently started playing around with sites and created a basic page. <apex:page
A really basic question, I have recently started exploring Objective C and Trying to
I am more into front end development and have recently started exploring Backbone.js into
I have recently started to use Twitter Bootstrap and trying to understand how it
I have recently started teaching myself C# and Asp.net. I am trying to build
I have recently started on MongodDb and I'm trying to explore on replica sets
I have recently started to code heavily AJAX supported scripts in PHP, thing is,
I have recently started learning wpf and am trying to use mvvm. My understanding
I have recently started exploring Maven, but I feel a bit overwhelmed of all
I have recently started using SQLALCHEMY to query a my-sql database. I want to

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.