Jump to content

anonymous users in mysql


raman

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.