LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

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

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


Hi

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

Host-bin.212
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, 08:13 AM   #2
pylem
LQ Newbie
 
Registered: Mar 2002
Posts: 1

Rep: Reputation: 0
Hello,

that may help:
http://www.phpbuilder.com/columns/ta...u20000912.php3

py

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


Reply


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 06:39 AM
HELP: PERL script to retrieve file listing xboxter Programming 2 05-19-2005 09:19 AM
use php script to parse a file. blackzone Linux - Software 1 07-07-2004 04:43 AM
PHP log file question. hct224 Linux - Newbie 2 11-11-2003 03:28 PM
php: function to retrieve filename? bulliver Programming 3 10-15-2003 07:26 AM


All times are GMT -5. The time now is 09:17 PM.

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