Re: Ayuda con Mysql y php3
| From: | Juan Pablo | Date: | Fri, 14 Jul 2000 02:47:01 +0000 |
| Subject: | Re: Ayuda con Mysql y php3 | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-483@lists.php.net to get a copy of this message | ||
Hola Jesus
Antes que nada muchas gracias
El mysql viene como un servicio adicional con el servidor y ya viene
compilado. Ya pregunte a la lista de Mysql y me respondieron esto:
First of all try starting / stoping mysql server with mysql.server
start / stop.
Next, there are some heavy ulimit limits set for the user under whose
uid mysql server is running.
Increase those limits a lot, especially number of open files.
Primero el script mysql.server no exite con la inmstalacion, sinembargo ya
lo consegui, aun no lo he montado.
y lo segundo no se muy bien que quiere decir ni como hacerlo. (estoy
aprendiendo)
Sinembargo buscando en el manual vi algo relacionado con el sistema
operativo que uso que es el FreeBsd 3.3
****
The problem here is that mysqld is trying to keep open too many files
simultaneously. You can either tell mysqld not to open so many
files at once, or increase the number of file descriptors available to
mysqld.
To tell mysqld to keep open fewer files at a time, you can make the table
cache smaller by using the -O table_cache=32 option to
safe_mysqld (the default value is 64). Reducing the value of max_connections
will also reduce the number of open files (the
default value is 90).
To change the number of file descriptors available to mysqld, modify the
safe_mysqld script. There is a commented-out line ulimit
-n 256 in the script. You can remove the '#' character to uncomment this
line, and change the number 256 to change the number of
file descriptors available to mysqld.
***
esta es la linea..
ulimit -n 256 > /dev/null 2>&1 # Fix for BSD and FreeBSD systems
pero. ¿cuanto debo poner?
Si me puedes ayudar, te agradeceria muchismo
adios
Juan Pablo Córdoba Mosos
> From: Jesus Castagnetto <jmcastagnetto@zkey.com>
> Reply-To: lista@phpes.com
> Date: Thu, 13 Jul 2000 03:19:32 -0700 (PDT)
> To: lista@phpes.com
> Subject: Re: [PHP-ES] Ayuda con Mysql y php3
>
> Primero, te aconsejaria que uses el script "safe_mysql" que viene con
> MySQL para cargar el db server, modifica el script si quieres para que
> el servidor escriba un log de lo que hace. Este script recarga el
> server en caso de que muera.
>
> Segundo, compilaste MySql o lo conseguiste de un RPM? Lo mejor es
> compilar MySQL para tu maquina, de otro modo es posible que la config
> de la persona que hizo el RPM no sea la misma que la de tu maquina.
>
> Por ultimo, revisa el manual de MySQL, y fijate que parametros tienes
> en tu configuracion. El archivo esta (generalmente) en:
> $MYSQL_ROOT/etc/my.cnf
>
> Donde $MYSQL_ROOT es el directorio donde instalaste MySQL.
>
> Suerte y saludos
>
> --- Jesus M. Castagnetto
>
> Quoting Juan Pablo <juanpabloc@bigfoot.com>:
>
>> Antes que nada me disculpo ya que esta nos es una lista de mysql,
> pero
>> buen> o
>> debido a su cercana relacion con php me atrevo a pedir AUXILIO
>>
>> Tengo u servidor Mysql que se cae cada rato, que se usa traves de
> php3.
>> El error muestra que no se puede conectar y lo reviso y esta caido
>>
>> al instalarlo o al reiniciarlo dice esto
>>
>> 000713 4:31:48 Warning: setrlimit couldn't increase number of open
> files
>> to more than 150
>> 000713 4:31:48 Warning: Changed limits: max_connections: 28
> table_cache:
>> 56
>>
>> Que realmente no se que significa. No se si es bueno o malo.
>>
>> Antes no molestaba para nada pero creo que se increento el trafico y
>> comenz> o
>> a caerse.. por esto supongo que esta relacionado con el mensaje de
> alerta
>> d> e
>> arriba. Si alguien sabe como configurarle, que configurarle o como
>> controlarlo desde php3 .. por favor necesito ayuda ..
>> cliente furioso detrás de mi
>>
>> Juan Pablo Córdoba
>>
>>
>>
> ---------------------------------------------------------------------
>> Para dar de baja la suscripción, mande un mensaje a:
>> lista-unsubscribe@phpes.com
>>
>>
>
> -------------------------------------------------
> Created by Zkey.com - http://www.zkey.com
> Awarded PCMagazine's Editors' Choice
>
> ---------------------------------------------------------------------
> Para dar de baja la suscripción, mande un mensaje a:
> lista-unsubscribe@phpes.com
>