mysql logins

This is a discussion on mysql logins within the MySQL Database forums, part of the Database Forums category; Is there a log file or is there some way to create a log file to monitor logins to a ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-06-2006
phwashington@comcast.net
 
Posts: n/a
Default mysql logins

Is there a log file or is there some way to create a log file to
monitor logins to a MySQL server?
Is there something that can be added in the my.cnf file or is there a
default log which keeps this information? I am using MySQL 4.1.

I am currently having trouble using AuthMYSQL on a apache web server
and can't tell if it is even attempting to login. I can create a PHP
page and login using the account and can use the local client to login,
but it doesn't appear to be working with AuthMYSQL. I am using the
same .htaccess as I was for mysql 3.53 and transferred it over to a
system with 4.1 and can't seem to get it to work.

Reply With Quote
  #2 (permalink)  
Old 03-06-2006
phwashington@comcast.net
 
Posts: n/a
Default Re: mysql logins

I tried to load the module mysql_auth_module in the httpd.conf file
explicitly and I received the error
module mysql_auth_module is already loaded, skipping
upon restarting the system.

Reply With Quote
  #3 (permalink)  
Old 03-06-2006
Bill Karwin
 
Posts: n/a
Default Re: mysql logins

<phwashington@comcast.net> wrote in message
news:1141612000.648167.276920@i40g2000cwc.googlegr oups.com...
> I am currently having trouble using AuthMYSQL on a apache web server

....
> I am using the
> same .htaccess as I was for mysql 3.53 and transferred it over to a
> system with 4.1 and can't seem to get it to work.


I don't know anything about AuthMYSQL, but I would guess you might be
experiencing the issue documented here:
http://dev.mysql.com/doc/refman/5.0/en/old-client.html

In other words, PHP cannot login to the MySQL database, to do the
authentication for your web app.

Regards,
Bill K.


Reply With Quote
  #4 (permalink)  
Old 03-06-2006
phwashington@comcast.net
 
Posts: n/a
Default Re: mysql logins

Thanks for the page. I read through it and it indicates that if this
problem occurs php will not be able to login. I can login with PHP,
but AuthMYSQL doesn't appear to work. I looked at my password length
and they are still old style. less than 16 characters. Thanks for the
effort and the heads up. This will really put a kink in things if I
upgrade to 5.0.

Reply With Quote
  #5 (permalink)  
Old 03-06-2006
Axel Schwenke
 
Posts: n/a
Default Re: mysql logins

phwashington@comcast.net wrote:
> Is there a log file or is there some way to create a log file to
> monitor logins to a MySQL server?


The general log (--log) logs login attempts to MySQL. Both successful
and unsuccessful.

> I am currently having trouble using AuthMYSQL on a apache web server
> and can't tell if it is even attempting to login.


Where did you get mod_auth_mysql from? I remember there was a broken
version floating around. But I compiled it several times back in the
old days ...

> I am using the
> same .htaccess as I was for mysql 3.53 and transferred it over to a
> system with 4.1 and can't seem to get it to work.


What is "can't get it to work"? No login request from server? Access
denied? Is there anything in the Apache error log?


XL
--
Axel Schwenke, Senior Software Developer, MySQL AB

Online User Manual: http://dev.mysql.com/doc/refman/5.0/en/
MySQL User Forums: http://forums.mysql.com/
Reply With Quote
  #6 (permalink)  
Old 03-06-2006
phwashington@comcast.net
 
Posts: n/a
Default Re: mysql logins

Following is the error that I see in the apache logs. Sorry I didn't
include it earlier.

in /var/log/httpd/error_log
configuration error: couldn't check user. No user file?:
/TEST/index.html

Reply With Quote
  #7 (permalink)  
Old 03-06-2006
phwashington@comcast.net
 
Posts: n/a
Default Re: mysql logins

I must not have the correct setting in my.cnf because I looked in
/var/log/mysqld.log and in /var/log/messages and cannot find anything
for users logging in. The only thing I see are mysqld shutdowns and
restarts.

Reply With Quote
  #8 (permalink)  
Old 03-06-2006
Axel Schwenke
 
Posts: n/a
Default Re: mysql logins

phwashington@comcast.net wrote:
> Following is the error that I see in the apache logs. Sorry I didn't
> include it earlier.
>
> in /var/log/httpd/error_log
> configuration error: couldn't check user. No user file?:
> /TEST/index.html


Looks like you haven't loaded mod_auth_mysql into Apache.
Check your httpd.conf. Some mod_auth_mysql settings can
only be done there.


XL
--
Axel Schwenke, Senior Software Developer, MySQL AB

Online User Manual: http://dev.mysql.com/doc/refman/5.0/en/
MySQL User Forums: http://forums.mysql.com/
Reply With Quote
  #9 (permalink)  
Old 03-06-2006
Axel Schwenke
 
Posts: n/a
Default Re: mysql logins

phwashington@comcast.net wrote:
> I must not have the correct setting in my.cnf because I looked in
> /var/log/mysqld.log and in /var/log/messages and cannot find anything
> for users logging in. The only thing I see are mysqld shutdowns and
> restarts.


The general log has to be turned on explicitly by putting the
--log option onto mysqld commandline or into my.cnf.

http://dev.mysql.com/doc/refman/5.0/en/query-log.html
http://dev.mysql.com/doc/refman/5.0/...ion-files.html


XL
--
Axel Schwenke, Senior Software Developer, MySQL AB

Online User Manual: http://dev.mysql.com/doc/refman/5.0/en/
MySQL User Forums: http://forums.mysql.com/
Reply With Quote
  #10 (permalink)  
Old 03-06-2006
phwashington@comcast.net
 
Posts: n/a
Default Re: mysql logins

I created another log as per the option-files and when I log in on the
local client and when I log in via a PHP page the login shows up. But
whenever I go to a directory where I am trying to use AuthMYSQL no
login shows up. So my current guess is that there is a problem with my
configuration or mod_auth_mysql.
I have read and tried to follow the directions in the mod_auth_mysql
documentation and everything appears to be correct.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:15 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0