Solved

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

Posted on 2008-10-19
6
1,406 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

685 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