Solved

warning  : 1 client is using or hasn't closed the table properly

Posted on 2008-10-19
6
1,310 Views
Last Modified: 2013-12-13
Hi everyone,

Just a little bit of background on the situation.  I moved my webserver from one physical box to another yesterday.  I use a program called ISPConfig to administer the websites.  I backed up all of the mysql stuff and put it onto the new server.

Now when I log onto the new server I get a message saying I have new mail.  When I view the mail it says:

warning  : 1 client is using or hasn't closed the table properly

About a few different databases.  How can I fix it?
0
Comment
Question by:bswinnerton
  • 3
  • 2
6 Comments
 
LVL 5

Expert Comment

by:ifreq
Comment Utility
One of your tables must been corrupted while moving them to another server, you can fix them with this command:

mysqlcheck -q -r -u root -p yourdatabasename

0
 
LVL 5

Author Comment

by:bswinnerton
Comment Utility
Is there a way to check all of them at once?
0
 
LVL 5

Author Comment

by:bswinnerton
Comment Utility
One of the databases came up with the following:

note     : The storage engine for the table doesn't support repair

Is that something I should be concerned with?
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 5

Accepted Solution

by:
ifreq earned 400 total points
Comment Utility
Yes, thats a good question :-) Here is the answer:

Repair & Optimize
mysqlcheck -Aor -u root -p

Repair Only
mysqlcheck -Ar -u root -p

Optimize Only
mysqlcheck -Ao -u root -p

Argument Definitions
-A - Check all Mysql databases
-r - Repair all Mysql databases
-o - Optimize all Mysql databases

You can also add -q as I mentioned earlier, its defined as:

 --quick, -q

          If you are using this option to check tables, it prevents the check
          from scanning the rows to check for incorrect links. This is the
          fastest check method.


0
 
LVL 34

Assisted Solution

by:Beverley Portlock
Beverley Portlock earned 100 total points
Comment Utility
If you have phpMyAdmin installed, select the database and then scroll to the bottom of the list of tables. There is a link there that says "Check All". Tick it and then go to the combo to the right and one of the options is "check table". Since every table is checked it will do them all.

If you have not installed phpMyAdmin you should consider it. It is very useful to have around.
0
 
LVL 5

Expert Comment

by:ifreq
Comment Utility
note     : The storage engine for the table doesn't support repair


You propably have database which uses the InnoDB engine. It's very good engine but unfortunately not every provider offer the InnoDB support in MySQL and the support for InnoDB in MySQL is not perfect.

The InnoDB engine does not support the repair command, but AFAIK it is also not necessary.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now