При импорте базы данных нередко можно столкнуться с ошибкой:
#1118 — The size of BLOB/TEXT data inserted in one transaction is greater than 10% of redo log size. Increase the redo log size using innodb_log_file_size.
В файл /etc/my.cf
добавляем строки
log-queries-not-using-indexes
log=/var/log/mysql-queries.log
log-error=/var/log/mysql-errors.log
log-slow-queries=/var/log/mysql-slow-queries.log
UPD. В более новых версиях MySQL
—log-slow-queries признано устаравешим и теперь рекомендуется использовать
—slow-query-log
Файлы для ведения логов лучше создать вручную. И не забываем про права!
touch /var/log/mysql-queries.log
touch /var/log/mysql-errors.log
touch /var/log/mysql-slow-queries.log
chown mysql:mysql /var/log/mysql*
chmod 640 /var/log/mysql*
Warning: mysql_error() expects parameter 1 to be resource, boolean given in /home/hitball/hitball.com.ua/www/lib/DbSimple/Mysql.php on line 194
Код
return $this->_setLastError(mysql_errno($this->link), mysql_error($this->link), $query);
Это означает, что неверно настроено подключение к БД