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

  • Home
  • SEARCH
  • 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 271675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T00:12:08+00:00 2026-05-12T00:12:08+00:00

I have installed php5 and mysql5 on my server , I can login to

  • 0

I have installed php5 and mysql5 on my server , I can login to mysql from command,
but when I try to connect using php I got this error message:

Access denied for user ‘root’@’localhost’ (using password: YES)PHP Warning: mysql_query() [function.mysql-query]: Access denied for user ‘ODBC’@’localhost’ (using password: NO) in D:\HostingSpaces\law-training\lawtraining.ir\wwwroot\includes\class.php on line 279 PHP Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in

I dont use ‘ODBC’@’localhost’ in my code at all.
I check using phpmyadmin , also I can’t use it and can’t connect to server.I use port 3309 for mysql , and from local or remote php can’t login.
I use also mysql4 on this server on port 3306 and I can use it without problem.
how can i fix this problem?

Thanks

  • 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-12T00:12:08+00:00Added an answer on May 12, 2026 at 12:12 am

    Try logging in to localhost:3309, I think you’ll find that you’re running it on a non-standard port, so you need to tell PHP where to look for the server.

    ie.

    mysql_connect("localhost:3309", "root", "mypassword");
    

    As a sidenote, the ODBC@localhost connection is what mysql_query tries to use if there’s no connection already open.

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

Sidebar

Related Questions

I have set up PHP5.3, MySQL5.1, and IIS7 on Window 7 but php doesn't
I have installed and setup RubyCAS-Server and RubyCAS-Client on my machine. Login works perfectly
I have a multi-server environment ( all windows 2003 ). I manually installed php
I have a mac with a custom PHP 5 install that built from about
I have installed CherryPy 3.1.0,. Here is what happens when I try to run
I have installed Xperf performance analyzer from Windows SDK and captured a trace as
I have installed pylons based application from egg, so it sits somewhere under /usr/lib/python2.5/site-packages.
I'm running a Mac Mini with Apache/PHP5/MySQL as my staging server. I'm building and
Does using a PHP framework (CodeIgniter, Zend) require special server side setup? And if
I am currently using Windows XP SP3 with Apache 2.2, PHP 5.3, MySQL 5.1

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.