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
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (1 invisible), 780 guests, and 174 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240501)