MySQL : Monitor Queries [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am trying to understand a PHP - MySQL project. The Project is quite complex so exploring it line by line is quite impossible.
What I want to do is, compare the instances of a MySQL database.
Say,
1) MySQL is up and running. This is instance number one of the database.
2) A user logs in from PHP front end, and then logs out.
3) This is instance number two of the database.
I need to see what changed between instance one and instance two, in a friendly way.
Any suggestions regarding open source tools or any other techniques?

You could use mysqldump to take a snapshot of the database, do your login/log out and then dump the database again and use a tool like diff or winmerge to compare the changes.
You could also turn on full query logging in mysql - this is just a single line to the config - http://dev.mysql.com/doc/refman/5.1/en/query-log.html

Related

Generate random file in Laravel [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I would like to test a code that I made with randomly generated files with certain extensions(so that I can check validation always works), I've searched for this, but could only find something about faker, it generates random data, but I am looking to generate files in Laravel.
You can do this very thing using PHP alone.
Make an array of names of files manually or see this to generate a random string.
Then define an array of extensions that you want to test against.
And then very easily you can merge the two above to have random files with certain extensions.
If you still have any doubts please let me know and I'll update my answer accordingly.

Most efficient way to list server status results [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I'm trying to determine the best way to show server status results.
We have roughly two dozen websites and services to maintain, and the old system they had here was crude (HTML, manual color change to reflect status), and I'm trying to re-vamp it a little.
What would be the best method for doing a simple heartbeat ping to an internal service, while cleanly listing them.
Also, has to be compatible with Sharepoint.
I've read that PHP is the baseline for this, but I can't find much in the way of a continuous ping/health monitor.
This would need to be done client side, with an AJAX query to a script that runs the ping/heartbeat check code. With a callback that updates the status, based upon the ID.
Using setInterval () will enable you to execute this on a regular basis, without requiring manual input.
Note that if you need to create such a system that can be opened from many clients, you might want to look into caching the heartbeat check result on the server side. To prevent self-flooding of the servers.

php DataGrid equivalent [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
i am building CRUD pages for over 20 tables with different schemes
in ASP .NET i just need to use DataGrid and (almost) everything is handled automatically
is their any equivalent for DataGrid in php that will allow user to add, delete and update records in mysql table with out the need to write all the php/SQL codes
phpGrid (www.phpgrid.com) can handle all you CRUD needs. It's a commercial product, but man, it worths every penny. You can also download the free lite version and use it for free.
There are some DataGrids which have php libraries to make crud operations. Some of them are not free. You can take a look at this nice list of selection. http://php-team.blogspot.com/2009/05/10-jquery-datagrid-plugins.html
If you want to generate php code, there are free and commercial software, i advice you to take a look at phpmaker.
You can try DaDaBIK www.dadabik.org.
Disclaimer: I'm the author.

Simple open source filter for php mysql [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I know I could code what I'm trying to achieve, but I'd like to know if such a plugin exists....
This is what im looking for,
A web page which takes a mysql table structure and accepts user conditions for a select.
For example, if a table consists of age,location, name and email, is there a plugin which once set up shows a page where a user can enter conditions for any of/ some the columns he wants and then run a search which displays the records fromt eh mysql database...
conditions like age between or age>
location in ('..','...')
etc etc...
basically a simple script to search for a bunch of records based on the users conditions
I don'y know if i understood you correctly and i don't know if this is what you are looking for exactly but this might do.
http://www.scriptiny.com/2009/03/table-sorter/
I use phpMyAdmin - you can browse your tables, insert data, run open-ended queries or use a search form to fill in what you're looking for. Plus loads more. It's excellent, free and (I believe) open source.
http://www.phpmyadmin.net/

PHP simple text database with SQL syntax [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am looking for a simple text flat database that can work with the SQL-like instructions SELCT, INPUT, UPDATE, DELETE.
There is a database that fully satisfies me, but it is for Perl - http://metacpan.org/pod/Sprite
I need something like that, but PHP class.
Thank you in advance!
Use SQLite. It has a PHP class too here:
http://www.phpclasses.org/package/2107-PHP-SQLite-database-access-wrapper.html
Apparently stalled or abandoned but quite what you are looking for:
PHP Text File Database API - PHP Text DB: access Text Files with SQL
http://www.c-worker.ch/txtdbapi/index_eng.php, also at
http://sourceforge.net/projects/flatfiledb/
PHP Flatfile package - provides equivalents to many common SQL commands
http://lukeplant.me.uk/resources/flatfile/
is this what you're looking for? askSam
file = table
folder = database
http://nodb.at/
ASAP - as simple as possible
the idea is like this:
database = folder
table = subfolder
column = file in subfolder
record = a line in column-file ;)
so theoretically you could have a table inside a table or even work with filesystem links (linux ln -sv command)

Categories