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
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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.