Solved

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

Posted on 2008-10-19
6
1,338 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
ID: 22753524
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
ID: 22753657
Is there a way to check all of them at once?
0
 
LVL 5

Author Comment

by:bswinnerton
ID: 22753676
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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
LVL 5

Accepted Solution

by:
ifreq earned 400 total points
ID: 22753681
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
ID: 22753682
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
ID: 22753749
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
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…
The viewer will learn how to count occurrences of each item in an array.

895 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

16 Experts available now in Live!

Get 1:1 Help Now