Previous Thread
Next Thread
Print Thread
Hop To
#128566 05/02/2006 9:43 AM
Joined: Jun 2006
Posts: 869
old hand
old hand
Joined: Jun 2006
Posts: 869
Is here a command to see if the DB is well optimized?


http://clubadventist.com/forums

No longer following the carrot
Joined: Dec 2003
Posts: 20
stranger
stranger
Joined: Dec 2003
Posts: 20
Yes.
mysqlcheck threadsdatabase -o will optimize the tables.

Joined: Jun 2006
Posts: 869
old hand
old hand
Joined: Jun 2006
Posts: 869
I get this error messages with that

Script: /homepages/1/d118328893/htdocs/clubadventist/adventist/admin/dodbcommand.php
Line#: 107
SQL Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysqlcheck threadsdatabase' at line 1
SQL Error #: 1064
Query: mysqlcheck threadsdatabase


http://clubadventist.com/forums

No longer following the carrot
Joined: Dec 2003
Posts: 20
stranger
stranger
Joined: Dec 2003
Posts: 20
Best to optimize or repair via shell.

Joined: Jul 2006
Posts: 2,143
Pooh-Bah
Pooh-Bah
Joined: Jul 2006
Posts: 2,143
Um no. Look at what was run:

SQL Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysqlcheck threadsdatabase' at line 1

Best to replace the word threadsdatabase with the actual name of your threads database.

Additionally, i think the option (-o) goes before the database name.

> mysqlcheck -o your-database-name-here

<img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />


This thread for sale. Click here! [Linked Image from navaho.infopop.cc]
Joined: Dec 2003
Posts: 20
stranger
stranger
Joined: Dec 2003
Posts: 20
Doesn't matter where you put the -o.

Joined: Jun 2006
Posts: 869
old hand
old hand
Joined: Jun 2006
Posts: 869
OK I used db122662337 this and got this
[]

SQL Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysqlcheck db122662337 -o' at line 1
SQL Error #: 1064
Query: mysqlcheck db122662337 -o [/]

I also used w3t_db122662337


http://clubadventist.com/forums

No longer following the carrot
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
It should be noted, since nobody has noted it yet, this command is meant to be run from the command line, not from within .threads <img src="https://www.ubbcentral.com/boards/images/graemlins/wink.gif" alt="" />


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
0 members (), 253 guests, and 121 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)