Database Error - SQL/NoSQL - Programmation
Marsh Posté le 14-06-2008 à 12:37:29
pour info, la derniere requete utilisée est la suivante :
SELECT
hlstats_Players.playerId,
hlstats_Players.connection_time,
hlstats_Players.lastName,
hlstats_Players.flag,
hlstats_Players.country,
hlstats_Players.skill,
hlstats_Players.kills,
hlstats_Players.deaths,
hlstats_Players.last_skill_change,
hlstats_Players.kills/(IF(hlstats_Players.deaths=0, 1, hlstats_Players.deaths)) AS kpd,
hlstats_Players.headshots,
IFNULL(hlstats_Players.headshots/hlstats_Players.kills, '-') AS hpk,
IFNULL(ROUND((hlstats_Players.hits / hlstats_Players.shots * 100), 1), 0.0) AS acc,
IF(7776000 > (UNIX_TIMESTAMP() - hlstats_Players.last_event), ((100/7776000) * (7776000 - (UNIX_TIMESTAMP() - hlstats_Players.last_event))), -1) as activity
FROM
hlstats_Players
WHERE
hlstats_Players.game='css2'
AND hlstats_Players.hideranking=0
AND hlstats_Players.kills >= 1
AND hideranking=0
AND kills >= 1
HAVING activity >= 0
ORDER BY
skill desc,
kpd desc,
hlstats_Players.lastName ASC
LIMIT 0,50
UNIX_TIMESTAMP() pourrait etre incriminé ?
Marsh Posté le 14-06-2008 à 20:01:38
et voila !
je sais pas quel répertoire est full ... un répertoire temp ?
[~] # df -h
Filesystem Size Used Available Use% Mounted on
/dev/ram0 9.7M 6.9M 2.7M 72% /
tmpfs 16.0M 64.0k 15.9M 0% /tmp
/dev/sda4 62.0M 38.1M 23.9M 61% /mnt/ext
/dev/md9 509.5M 108.1M 401.3M 21% /mnt/HDA_ROOT
/dev/md0 915.8G 84.4G 831.4G 9% /share/MD0_DATA
/dev/ram0 9.7M 6.9M 2.7M 72% /mnt/HDA_ROOT/rootfs_2_3_6/bin
/dev/ram0 9.7M 6.9M 2.7M 72% /mnt/HDA_ROOT/rootfs_2_3_6/dev
/dev/md9 509.5M 108.1M 401.3M 21% /mnt/HDA_ROOT/rootfs_2_3_6/etc/config
/dev/md0 915.8G 84.4G 831.4G 9% /mnt/HDA_ROOT/rootfs_2_3_6/share/Qdownload
tmpfs 16.0M 64.0k 15.9M 0% /mnt/HDA_ROOT/rootfs_2_3_6/tmp
tmpfs 32.0M 3.4M 28.6M 11% /.eaccelerator.tmp
[~] # Filesystem Size Used Available Use% Mounted on
-sh: Filesystem: command not found
/dev/ram0 9.7M 6.9M 2.7M 72% /
tmpfs 16.0M 64.0k 15.9M 0% /tmp
/dev/sda4 62.0M 38.1M 23.9M 61% /mnt/ext
/dev/md9 509.5M 108.1M 401.3M 21% /mnt/HDA_ROOT
/dev/md0 915.8G 84.4G 831.4G 9% /share/MD0_DATA
/dev/ram0 9.7M 6.9M 2.7M 72% /mnt/HDA_ROOT/rootfs_2_3_6/bin
/dev/ram0 9.7M 6.9M 2.7M 72% /mnt/HDA_ROOT/rootfs_2_3_6/dev
/dev/md9 509.5M 108.1M 401.3M 21% /mnt/HDA_ROOT/rootfs_2_3_6/etc/config
/dev/md0 915.8G 84.4G 831.4G 9% /mnt/HDA_ROOT/rootfs_2_3_6/share/Qdownload
tmpfs 16.0M 64.0k 15.9M 0% /mnt/HDA_ROOT/rootfs_2_3_6/tmp
tmpfs 32.0M 3.4M 28.6M 11% /.eaccelerator.tmp
[~] #
[~] # /dev/ram0 9.7M 6.9M 2.7M 72% /
-sh: /dev/ram0: Permission denied
[~] # tmpfs 16.0M 64.0k 15.9M 0% /tmp
-sh: tmpfs: command not found
[~] # /dev/sda4 62.0M 38.1M 23.9M 61% /mnt/ext
-sh: /dev/sda4: Permission denied
[~] # /dev/md9 509.5M 108.1M 401.3M 21% /mnt/HDA_ROOT
-sh: /dev/md9: Permission denied
[~] # /dev/md0 915.8G 84.4G 831.4G 9% /share/MD0_DATA
-sh: /dev/md0: Permission denied
< 9.7M 6.9M 2.7M 72% /mnt/HDA_ROOT/rootfs_2_3_6/bin
-sh: /dev/ram0: Permission denied
< 9.7M 6.9M 2.7M 72% /mnt/HDA_ROOT/rootfs_2_3_6/dev
-sh: /dev/ram0: Permission denied
< 509.5M 108.1M 401.3M 21% /mnt/HDA_ROOT/rootfs_2_3_6/etc/config
-sh: /dev/md9: Permission denied
<.4G 9% /mnt/HDA_ROOT/rootfs_2_3_6/share/Qdownload
-sh: /dev/md0: Permission denied
< 16.0M 64.0k 15.9M 0% /mnt/HDA_ROOT/rootfs_2_3_6/tmp
-sh: tmpfs: command not found
< 32.0M 3.4M 28.6M 11% /.eaccelerator.tmp
-sh: tmpfs: command not found
[~] # [~] #
-sh: [~]: command not found
[~] #
merci pour ton aide
Marsh Posté le 17-06-2008 à 11:34:20
quelqu'un saurait me dire pour quel répertoire il faut augmenter la taille et surtout comment faire ?
merci d'avance
Marsh Posté le 17-06-2008 à 20:02:04
j'ai trouve, jai augmenté le répertoire #tmpdir = /tmp/ dans le fichier my.cnf
Marsh Posté le 14-06-2008 à 12:33:09
bonjour,
J'ai acheté un NAS QNAP TS 209Pro II.
Dessus ya un proco de 500MHz, et 256DDR2 + raid1 1To (il reste 800Go)
Bref, j'ai activé le server web et mysql.
J'ai installé un site qui s'appelle HLSTATSX, en fait je l'hébergeait chez moi sur WAMP et ca marche nickel. Donc recopie base de donnée et fichiers du site. Mais je me retrouve avec l'erreur suivante (a noter que la reprise d'autres sites du type SMF, joomla ... ne posent aucun probleme du meme genre).
j'ai l'erreur suivante sur un site que j'ai installé (hlstatsx) :
Database Error
Server Address:
Server Username: jdea1_001
Error Diagnostic:
Bad query.
Server Error: (3) Error writing file '/tmp/MYx6sJlU' (Errcode: 28)
Sur internet cette erreur est svt du a un manque de place ... mais bon la je comprend pas ... un probleme de config apache (1.3) ou php ou mysql ?
Comment régler le probleme ?
Merci d'avance