Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-18-2002, 08:43 PM
|
#1
|
|
Member
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428
Rep:
|
MySQL Log Files
Here is a question for ya, I am working trying to learn MySQL and PHP and have all kinds of error working with mysql, it would be helpful to have a logfile for mysql that might shed light on what I am doing wrong, it is not just one thing or I would post that for help, it is just me learning yet more about a computer, but I think it would help to have a log file. Does MySQL have log files that log errors? And where would I find it? Thanks.
|
|
|
|
10-19-2002, 03:50 AM
|
#2
|
|
Senior Member
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467
Rep:
|
For the error parts of your PHP code you can always use mysql_error described in http://www.php.net/manual/en/function.mysql-error.php
MySQL itself has an error log, but that won't shed any lights for you in the case of programming errors!
|
|
|
|
10-19-2002, 08:20 AM
|
#3
|
|
LQ Newbie
Registered: Sep 2002
Posts: 3
Rep:
|
Log of MySQL queries turn on by option --log=/var/log/mysql.q
Will be logged all queries and DB connections.
--
Sincerely,
Andrew A.Romanchenko
Programmer of Rapid Internet Development Department
Alar Information Technologies, www.alarit.com
|
|
|
|
10-19-2002, 08:36 AM
|
#4
|
|
Senior Member
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467
Rep:
|
Quote:
Originally posted by Def
Log of MySQL queries turn on by option --log=/var/log/mysql.q
Will be logged all queries and DB connections.
|
Keep in mind that this will DEFINATELY slow down your whole system ...
|
|
|
|
10-19-2002, 09:30 AM
|
#5
|
|
Member
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428
Original Poster
Rep:
|
Ok thank you for the info, slowing down the system is not a problem as of right now, It is mainly a system used for development and testing, it will be a couple of months before it goes live. And I wanted to see what was being passed to the databases so the logging should give me what I wanted. Thank you for your fast replies.
|
|
|
|
10-20-2002, 09:21 PM
|
#6
|
|
LQ Newbie
Registered: Oct 2002
Posts: 6
Rep:
|
wat os are u using now?
|
|
|
|
10-20-2002, 10:24 PM
|
#7
|
|
Member
Registered: Apr 2002
Location: New York, USA
Distribution: Redhat 7.2, 9.0 Slackware 9.1
Posts: 428
Original Poster
Rep:
|
For the servers I work with mostly redhat 7.2 that is what I am using that I was asking this question about, but in general I work troubleshooting windows all day long, and my own machines run win 95, 98, me, 2000, xp, redhat 7.2, mandrake 8.1, solaris 8. and yes I do have all of those running at the same time on different machines. I would love to go all linux but unfortunatly Bill Gates pays my paycheck every week, not literally but seeing that I spend all day every day troubleshooting windows I like to thing that he is paying me, so as long as that is what I am doing for a living I have to keep up with all the windows products.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:15 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|