Solved

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

Posted on 2008-10-19
6
1,431 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error in sql query statment. 21 70
unix shell script 4 42
how can I see the time difference in only seconds? 4 40
sitemap.xml 3 32
This article discusses four methods for overlaying images in a container on a web page
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

710 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