Chia Sẽ Kinh Nghiệm Về IT



Tìm Kiếm Với Google
-


Gởi Ðề Tài Mới  Gửi trả lời
 
Công Cụ Xếp Bài
Tuổi 27-06-2012, 10:49 AM   #1
tranqui89
Administrator
 
Gia nhập: Dec 2011
Trả Lời: 32
Lỗi MySQL query failed: Incorrect information in file: './psa/misc.frm khi mở Paralle
Lỗi MySQL query failed: Incorrect information in file: './psa/misc.frm khi mở Parallels Plesk Panel

Áp dụng cho:
  • Parallels Plesk Panel 9.x for Linux/Unix
  • Parallels Plesk Panel 8.x for Linux/Unix
  • Parallels Plesk Panel 10.x for Linux
Mô tả lỗi
Những lỗi sau xuất hiện trong màn hình đăng nhập Parallels Plesk Panel 8.x https://plesk.host.name:8443:

ERROR: PleskMainDBException
MySQL query failed: Incorrect information in file: './psa/misc.frm'

0: /usr/local/psa/admin/plib/common_func.php3:216
db_query(string 'select param, val from misc')
1: /usr/local/psa/admin/plib/common_func.php3:513
get_param(string 'mysql41_compatible')
2: /usr/local/psa/admin/plib/common_func.php3:410
db_set_names()
3: /usr/local/psa/admin/plib/common_func.php3:389
db_connect_real(string 'localhost', string 'admin', string '***********', string 'psa')
4: /usr/local/psa/admin/plib/common_func.php3:369
db_connect()
5: /usr/local/psa/admin/auto_prepend/auth.php3:87


với phiên bản Parallels Plesk Panel 10.x:

ERROR: Zend_Db_Statement_Exception
SQLSTATE[HY000]: General error: 1 Can't create/write to file '/tmp/#sql_39f_0.MYI' (Errcode: 13)

0: Pdo.php:234
Zend_Db_Statement_Pd_execute(array)
1: Statement.php:300
Zend_Db_Statement->execute(array)
2: Abstract.php:479
Zend_Db_Adapter_Abstract->query(string 'DESCRIBE `ServiceNodes`', array)
3: Abstract.php:238
Zend_Db_Adapter_Pdo_Abstract->query(string 'DESCRIBE `ServiceNodes`')
4: Mysql.php:169
Zend_Db_Adapter_Pdo_Mysql->describeTable(string 'ServiceNodes', NULL null)
5: Abstract.php:835
Zend_Db_Table_Abstract->_setupMetadata()
6: Abstract.php:874
Zend_Db_Table_Abstract->_setupPrimaryKey()
7: Abstract.php:982
Zend_Db_Table_Abstract->info()
8: Select.php:100
Zend_Db_Table_Select->setTable(object of type Db_Table_Broker_ServiceNodes)
9: Select.php:78
Zend_Db_Table_Select->__construct(object of type Db_Table_Broker_ServiceNodes)
10: Abstract.php:1018
Zend_Db_Table_Abstract->select()
11: Abstract.php:1331
Zend_Db_Table_Abstract->fetchAll(string '`transport` = 'local'')
12: Abstract.php:110
Db_Table_Abstract->findByField(string 'transport', string 'local')
13: Abstract.php:122
Db_Table_Abstract->findOneByField(string 'transport', string 'local')
14: ServiceNodes.php:226
Db_Table_Broker_ServiceNodes->getLocalServiceNode()
15: auth.php3:505


Nguyên nhân do đâu?

Nguyên nhân

Lỗi này gây do sự phân quyền không đúng trong thư mục /tmp dẫn đến MySQL không có khả năng tạo chính xác thư mục file tạm cho engine của datbae InnoDB hoạt động.

Đây là cấu hình phân quyền đúng:

PHP Code:
~# ls -ld /tmp/

drwxrwxrwt 4 root root 36864 Aug 8 08:41 /tmp/
~#

Khắc phục

Hiệu chỉnh lại phân quyền đúng cho thư mục bằng lệnh sau:
PHP Code:
~# chmod 1777 /tmp

Thông tin tham khảo thêm
Để nhìn thấy lỗi mysqld trong file file cấu hình /etc/my.cnf ta dùng lệnh sau:

PHP Code:
/etc/my.cnf

--->8---
[mysqld]
innodb_force_recovery = 4
---8<---


khởi động lại dịch vụ mysqld:

PHP Code:
~# /etc/init.d/mysqld restart

Stopping MySQL: [ OK ]
Starting MySQL: [ OK ]
~#

Xem file log trong MySQL:
PHP Code:
/var/log/mysqld.log

--->8---
^G/usr/libexec/mysqld: Can't create/write to file '/tmp/ib1suXEE' (Errcode: 13)
020326 22:26:17 InnoDB: Error: unable to create temporary file; errno: 13
020326 22:26:18 [Note] /usr/libexec/mysqld: ready for connections.
---8<---


Tìm dòng log-error có tồn tại trong file cấu hình MySQL:

PHP Code:
~# grep log-error /etc/my.cnf

log-error=/var/log/mysqld.log
~#

Tham khảo từ
http://kb.parallels.com/en/6595
Chúc các bạn thực hiện thành công.
tranqui89 vắng mặt   Trả lời ngay kèm theo trích dẫn này
Gửi trả lời



Quyền Hạn Của Bạn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Hình Cảm xúc đang Mở
[IMG] đang Mở
Mã HTML đang Tắt




Bây giờ là 03:02 PM. Giờ GMT +7



Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.