Question : Mysql server does not ask for password (Password is already set )

Hi
I am confused about this behavior.

I have Mysql Server Replication setup for 2 server (Master MASTER)

and both SErver has Same database. there is not any single data mismatch which include mysql directory

Now in one server,

there is a problem of root , and user 1

if i try with any of this user name, its going to mysql console straight way.

see the command :


[root@web /]# mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 23982
Server version: 5.1.45-log Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> \s
--------------
mysql  Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (i686) using readline 5.1

Connection id:          23982
Current database:
Current user:           fosiul@localhost
SSL:                    Cipher in use is DHE-RSA-AES256-SHA
Current pager:          stdout
Using outfile:          ''
Using delimiter:        ;
Server version:         5.1.45-log Source distribution
Protocol version:       10
Connection:             Localhost via UNIX socket
Server characterset:    latin1
Db     characterset:    latin1
Client characterset:    latin1
Conn.  characterset:    latin1
UNIX socket:            /tmp/mysql.sock
Uptime:                 17 days 4 hours 45 min 29 sec

Threads: 2  Questions: 21543  Slow queries: 0  Opens: 1675  Flush tables: 1  Open tables: 64  Queries per second avg: 0.14
--------------


when i typed , mysql, its going to console , but if i do "\s" its showing another user name rather then root


Now if i type :

[root@web /]# mysql -uroot

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 23984
Server version: 5.1.45-log Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> \s
--------------
mysql  Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (i686) using readline 5.1

Connection id:          23984
Current database:
Current user:           root@localhost
SSL:                    Cipher in use is DHE-RSA-AES256-SHA
Current pager:          stdout
Using outfile:          ''
Using delimiter:        ;
Server version:         5.1.45-log Source distribution
Protocol version:       10
Connection:             Localhost via UNIX socket
Server characterset:    latin1
Db     characterset:    latin1
Client characterset:    latin1
Conn.  characterset:    latin1
UNIX socket:            /tmp/mysql.sock
Uptime:                 17 days 4 hours 46 min 44 sec

Threads: 2  Questions: 21547  Slow queries: 0  Opens: 1675  Flush tables: 1  Open tables: 64  Queries per second avg: 0.14
--------------

mysql>



[root@web /]# mysql -uroot -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

[root@web /]# mysql -ufosiul
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 23987
Server version: 5.1.45-log Source distribution

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

[root@web bin]# mysql -ufosiul -p
Enter password:
ERROR 1045 (28000): Access denied for user 'fosiul'@'localhost' (using password: NO)




So bottom line is : every single of these users has password set with full privileges , but mysql allowing them to login without password

why is that ?? what causing this problem ???

Answer : Mysql server does not ask for password (Password is already set )

test this

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
Private Sub cmdNo_Click()
Dim accObj As New Access.Application
Dim strDSF As String
strDSF = [Forms]![frmMain]![txtTarget]

    With accObj
        .OpenCurrentDatabase strDSF
        .Visible = True
        .UserControl = True
    End With
   
    Set accObj = Nothing

End Sub
Random Solutions  
 
programming4us programming4us