Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 03-16-2002, 05:05 AM   #1
Registered: Jan 2002
Posts: 163

Rep: Reputation: 30
PHP Script to retrieve queries from log file


Is there any PHP script(open source) to retreive the queries from the MYSQL log files.My exact requirement is i want synchronise databases on two diffrent host.What i am planning is to read the queries from the log files of one database and execute the queries the same in the database in another host.But i find MYSQL generating log file of the form

212: is an id which keeps incrementing whenever a new log file is created(new file being created daily)

But i am not able to read this file.

Can anyone of u give me an suggetion
Old 03-17-2002, 09:13 AM   #2
LQ Newbie
Registered: Mar 2002
Posts: 1

Rep: Reputation: 0

that may help:


p.s. You should not use the log files to acheive what you want.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create log file from script fotoguy Programming 12 03-27-2012 07:39 AM
HELP: PERL script to retrieve file listing xboxter Programming 2 05-19-2005 10:19 AM
use php script to parse a file. blackzone Linux - Software 1 07-07-2004 05:43 AM
PHP log file question. hct224 Linux - Newbie 2 11-11-2003 04:28 PM
php: function to retrieve filename? bulliver Programming 3 10-15-2003 08:26 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:44 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration