PDF (US Ltr)
- 26.9Mb
PDF (A4)
- 26.9Mb
HTML Download (TGZ)
- 7.1Mb
HTML Download (Zip)
- 7.2Mb
一部のクエリーで次のタイプのエラーを受け取る場合は、MySQL が一時ディレクトリに結果セットの一時ファイルを作成できないことを意味します。
Can't create/write to file '\\sqla3fe_0.ism'.
上記のエラーは Windows での一般的なメッセージです。UNIX のメッセージも似ています。
解決策の 1 つは、--tmpdir
オプションを指定して mysqld を起動するか、オプションファイルの [mysqld]
セクションにこのオプションを追加することです。たとえば、C:\temp
ディレクトリを指定するには、次の行を使用します。
[mysqld]
tmpdir=C:/temp
C:\temp
ディレクトリが存在していて、MySQL サーバーが書き込むための十分な領域がある必要があります。セクション4.2.6「オプションファイルの使用」を参照してください。
このエラーの別の原因は権限の問題です。MySQL サーバーが tmpdir
ディレクトリに書き込めることを確認してください。
perror で表示されるエラーコードも確認します。サーバーがテーブルに書き込むことができない原因の 1 つは、ファイルシステムが満杯であるためです。
shell> perror 28
OS error code 28: No space left on device
起動時に次のタイプのエラーを受け取る場合は、データファイルの格納に使用されるファイルシステムまたはディレクトリが書き込み保護されていることを示しています。書き込みエラーがテストファイルに対するものであれば、このエラーは重大ではなく、無視しても安全です。
Can't create test file /usr/local/mysql/data/master.lower-test
ie i changed SELECT *
to SELECT FirstName, LastName
i keep forgetting why it fails for me (i use windows and *nix), so heres what needs to be checked:
- antivirus interference (never caused me errors)
- use 'somefieldname' instead of * (never caused me errors)
- permissions (i've forgotten to give 'Everyone' Read & Write perms on windows, chmod 777 on *nix)
- give MySQL user FILE perms (CREATE USER MyDBconnecter...with FILE perms)
- $myroot=str_replace('\\','/',$_SERVER['DOCUMENT_ROOT']);
(this last one often trips me up: the \ causes trouble on windows)
Hope this helps others,
Jon
Problem: on mysqld restart there was the following error:
./usr/sbin/mysqld: Can't create/write to file '/tmp/ibg6qcGT' (Errcode: 13)
071017 1:08:58 InnoDB: Error: unable to create temporary file; errno: 13
071017 1:08:58 [ERROR] bdb: /var/lib/mysql: Permission denied
071017 1:08:58 [ERROR] bdb: /var/lib/mysql/log.0000000001: Permission denied
071017 1:08:58 [ERROR] bdb: PANIC: Permission denied
071017 1:08:58 [ERROR] bdb: PANIC: DB_RUNRECOVERY: Fatal error, run database recovery
071017 1:08:58 [ERROR] bdb: fatal region error detected; run recovery
071017 1:08:58 [ERROR] bdb: /var/lib/mysql: Permission denied
071017 1:08:58 [ERROR] Can't start server : Bind on unix socket: Permission denied
071017 1:08:58 [ERROR] Do you already have another mysqld server running on socket: /tmp/mysql.sock ?
071017 1:08:58 [ERROR] Aborting
Solution:
I tried many things and read many thing but at the end I just went to the KUser (User Manager in kde),select mysql user and ticked into option Account Disabled and after it worked. It seems that that tick somehow refreshed the permissions.
I was not getting the issue for all the queries, but for some of them and that too not always. The error occurred when a lot of temporary MYI files were being created, and the anti-virus 'locked' the folder for scanning, before it could be written by next query result.
On my computer, it's c:\wamp\bin\mysql
Click OK, and Save Changes.
`man selinux` or google "disable selinux"
http://wiki.centos.org/HowTos/SELinux#head-eb72e09eb6c064aa5124982734323c81f99bc4be
we have to change owner of folder "temp" to "nobody"
open terminal and enter without ""
"sudo chown nobody /applications/xampp/xamppfiles/temp"
then enter your computer's password
/applications/xampp/xamppfiles/temp is link to your folder "temp"