Jump to content

Recommended Posts

There is a default table called user in mysql in which there are five users including two anonymous users which I have deleted from my database.For thE root account I had set up a password using

 

mysqladmin -u root password "applutiu".

 

When I connect to mysql in php scripts thru mysql_connect, if I give mysql_connect("127.0.0.1","root","applutiu") it can connect . with mysql_connect("localhost.localdomain","root","applutiu") also it can connect.

 

However with mysql_connect("localhost","root","applutiu")  it CANNOT CONNECT .CAN SOMEONE EXPLAIN why ?

 

These are three columns from the user table :

 

Host        User            Password

localhost  root          4ef545h575h5u8iy9s

localhost.localdomain  root 

127.0.0.1    root             

 

 

Link to comment
https://forums.phpfreaks.com/topic/126429-anonymous-users-in-mysql/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.