How to Fix (errno: 24, error: 17) in MySQL
2013-01-11 09:23
441 查看
How to Fix an (errno: 24) in MySQL
转自:http://info.solomonson.com/content/how-fix-errno-24-mysql
When creating a large number of partitions or tables, MySQL may mysteriously stop working and you find this type of error on
by the
A lot systems set this to something very low, like 1024. Unfortunately, the following will NOT work:
MySQL will respond with:
However, it is possible to make a change to
Then, be sure to restart mysql:
Now,
[b]How to Fix an (errno: 17) in MySQL[/b]
转自:http://stackoverflow.com/questions/4584458/error-dropping-database-cant-rmdir-test-errno-17
A database is represented by a directory under the data directory, and the directory is intended for storage of table data.
The
MySQL displays an error message when it cannot remove the directory
you can really drop the database manually by removing any remaining files in the database directory and then the directory itself.
转自:http://info.solomonson.com/content/how-fix-errno-24-mysql
When creating a large number of partitions or tables, MySQL may mysteriously stop working and you find this type of error on
/var/lib/mysql/$HOSTNAME.err:
[ERROR] /usr/sbin/mysqld: Can't open file: './database/table.frm' (errno: 24)
errno: 24simply means that too many files are open for the given process. There is a read-only mysql variable called
open_files_limitthat will show how many open files are allowed
by the
mysqld:
SHOW VARIABLES LIKE 'open%'
A lot systems set this to something very low, like 1024. Unfortunately, the following will NOT work:
SET open_files_limit=100000
MySQL will respond with:
ERROR 1238 (HY000): Variable 'open_files_limit' is a read only variable
However, it is possible to make a change to
/etc/my.cnf. This file may not exist, if not, just create it. Be sure it has the following contents:
[mysqld] open_files_limit = 100000
Then, be sure to restart mysql:
sudo /etc/init.d/mysql restart
Now,
SHOW VARIABLES LIKE 'open%'should show 100000. The number you use may be different.
[b]How to Fix an (errno: 17) in MySQL[/b]
转自:http://stackoverflow.com/questions/4584458/error-dropping-database-cant-rmdir-test-errno-17
A database is represented by a directory under the data directory, and the directory is intended for storage of table data.
The
DROP DATABASEstatement will remove all table files and then remove the directory that represented the database. It will not, however, remove non-table files, whereby making it not possible to remove the directory.
MySQL displays an error message when it cannot remove the directory
you can really drop the database manually by removing any remaining files in the database directory and then the directory itself.
相关文章推荐
- How to Fix an (errno: 24) in MySQL
- How to fix Fatal error: Call to undefined function: mysql_connect() in Ubuntu
- How to fix error "SqlStudio Editor Package did not load correctly" in VS2012
- How to throw an error in MySql procedure?
- How To Fix “Problem with MergeList /var/lib/apt/lists” Error In Ubuntu 11.04
- How to fix Cannot change version of project facet Dynamic Web Module to 3.0 Error in Eclipse---转载
- How to fix the “msvcrt-ruby18.dll is missing from your computer” error message in Ruby on Rails
- How to Fix “firewall-cmd: command not found” Error in ubuntu
- How to fix Rosetta stone error 2123 -- "This was an error in the application"
- Py第二十问 How to fix “ImportError: No module named …” error in Python?
- How to fix Rosetta stone error 2123 -- "This was an error in the application"
- How to fix TFS workspace mapping error in Jenkins
- How do I fix the linker error in project upgraded from VS2010 to VS2013 where the linker is looking
- How To Fix “Problem with MergeList /var/lib/apt/lists” Error In Ubuntu 11.04
- How to fix the “Cannot retrieve repository metadata (repomd.xml)” error in Fedora?
- How To Fix Host Not Responding Error with VMware ESX, vSphere in vCenter
- How To Fix “Problem with MergeList /var/lib/apt/lists” Error In Ubuntu 11.04
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- Fatal error: Call to undefined function mysql_connect() in……
- Hibernate: You have an error in your SQL syntax; check the manual that corresponds to your MySQL