Jump to content

phpmyadmins optimize tool


sford999

Recommended Posts

Hi,

I`m trying to make a section in a script I`m building thats similar to the tool that phpmyadmin has.

Basically I want to run the optimize query then display a table with the results such as the image below

[img]http://www.carpfishinguk.net/opt.jpg[/img]

I`ve tried searching google for an answer to no avail.

Can anyone point me in the right direction or give me some pointers on how to do this?

Thanks
Link to comment
https://forums.phpfreaks.com/topic/26853-phpmyadmins-optimize-tool/
Share on other sites

It works for me:
[code]
mysql_connect(db_host, db_username, db_password);
mysql_select_db(db_database);
$result=mysql_query("OPTIMIZE TABLE `v2_settings`");
var_dump(mysql_fetch_assoc($result));
[/code]
outputs: (I have xdebug enabled)
[quote]
array
  'Table' => 'ekinboard.v2_settings' (length=21)
  'Op' => 'optimize' (length=8)
  'Msg_type' => 'status' (length=6)
  'Msg_text' => 'OK' (length=2)
[/quote]

Monkeymatt

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.