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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:09:50+00:00 2026-05-31T02:09:50+00:00

I have installed a MySQL database on a Debian Lenny 5.0 and I am

  • 0

I have installed a MySQL database on a Debian Lenny 5.0 and I am trying to connect to that database remotely using PHP.

This is the way I’m logging in:

$con = mysql_pconnect("MY_IP_ADDRESS","root","MY_PASSWORD");
if (!$con)
die('Could not connect: ' . mysql_error());

and this is the error I get:

Could not connect: Access denied for user 'root'@'li273-10.members.linode.com'
(using password: YES)

Which Im not sure why my linode user appears there.

To enable remote connections I used this tutorial: http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html

Another thing I’ve noticed, in my phpmyadmin on the MySQL side I have this:

Server: localhost via TCP/IP
Server version: 5.0.51a-24+lenny5
Protocol version: 10
User: root@mycooldb

Which I think that localhost has to be my server’s IP Address?

What I’m I doing wrong?

Few thing that didnt work from the tutorial:

Saving all rules: service iptables save doesn’t work. I get this error:

-bash: service: command not found

Last, when I do mysql -u webadmin –h MY_IP –p I get this: enter image description here

  • 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-31T02:09:52+00:00Added an answer on May 31, 2026 at 2:09 am

    You need to create a user / permissions for the remote user as well. Likely the root user has permissions defined only as root@localhost.

    You’d need to define a user permission like: user@% or user@li273-10.members.linode.com.

    http://dev.mysql.com/doc/refman/5.0/en/create-user.html

    You probably don’t want to give a super user account (root in this case) remote access.

    Your hostname is appearing in the authentication line because you actually connect to the db as user@hostname.

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

Sidebar

Related Questions

I am trying to connect to MySQL database over a network. I have installed
We have installed OpenDataKit (ODK) Aggregate and we are using a MySQL Database. I
I have a couple of scripts that interact with a MySQL database using ActiveRecord
I am currently trying to solve this problem in MySQL. I have MySQLdb installed.
I'm trying to get away from using Mamp, so have recently installed mysql, edited
I have installed mySQL using sudo apt-get install mySQL-server then i have installed libmysqlclient15-dev
I have installed mysql on a mac 10.7, I am using phpmyadmin to access
I am using Debian Linux on which MySQL is installed. I can log in
So I have a MySQL database set up on a Debian server and it
I have just installed MySQL Community Server and now want to create a database

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.