| 
					
							
        
    
        
						
			 | 
			
			
					    
					
        
         
          
         
	
            | mysql_pconnect Vs. mysql_connect Fra : Morten Sandholdt | 
  Dato :  04-02-03 23:41 |  
  |   
            Hej
 Er der en der kan fortælle mig hvad forskellen er på de 2 MySql connection
 typer og hvilken man bør bruge?
 Jeg bruger nu den persistente men får nogle gange en "too many connections",
 er det fordi den ikke får lukket dem igen hurtigt nok?
 
 
 Hilsen
 Morten
 
 
  
            
             |   |   
            
        
 
            
         
           Ukendt (05-02-2003) 
         
	
            | Kommentar Fra : Ukendt | 
  Dato :  05-02-03 02:55 |  
  |   
            On Tue, 4 Feb 2003 23:40:46 +0100, "Morten Sandholdt"
 <sandholdt@esenet.dk> wrote:
 
 >Hej
 >Er der en der kan fortælle mig hvad forskellen er på de 2 MySql connection
 >typer og hvilken man bør bruge?
 >Jeg bruger nu den persistente men får nogle gange en "too many connections",
 >er det fordi den ikke får lukket dem igen hurtigt nok?
 
 Taget fra php.net/mysql_pconnect
 
  mysql_pconnect() acts very much like mysql_connect() with two major
 differences.
 
 First, when connecting, the function would first try to find a
 (persistent) link that's already open with the same host, username and
 password. If one is found, an identifier for it will be returned
 instead of opening a new connection.
 
 Second, the connection to the SQL server will not be closed when the
 execution of the script ends. Instead, the link will remain open for
 future use (mysql_close() will not close links established by
 mysql_pconnect()). 
  
            
             |   |   
            
        
 
            
         
           Morten Sandholdt (06-02-2003) 
         
	
            | Kommentar Fra : Morten Sandholdt | 
  Dato :  06-02-03 00:38 |  
  |   
            
 <Martin> wrote in message news:1mr04vsv3dgh6s29vauqmrtaeqgijfr0p4@4ax.com...
 > On Tue, 4 Feb 2003 23:40:46 +0100, "Morten Sandholdt"
 > <sandholdt@esenet.dk> wrote:
 >
 > >Hej
 > >Er der en der kan fortælle mig hvad forskellen er på de 2 MySql
 connection
 > >typer og hvilken man bør bruge?
 > >Jeg bruger nu den persistente men får nogle gange en "too many
 connections",
 > >er det fordi den ikke får lukket dem igen hurtigt nok?
 >
 > Taget fra php.net/mysql_pconnect
 >
 >  mysql_pconnect() acts very much like mysql_connect() with two major
 > differences.
 >
 > First, when connecting, the function would first try to find a
 > (persistent) link that's already open with the same host, username and
 > password. If one is found, an identifier for it will be returned
 > instead of opening a new connection.
 >
 > Second, the connection to the SQL server will not be closed when the
 > execution of the script ends. Instead, the link will remain open for
 > future use (mysql_close() will not close links established by
 > mysql_pconnect()).
 
 
 Tak, men det havde jeg læst, jeg mangler nogle der har arbejdet med det og
 kan fortælle lidt om det.
 
 
  
            
             |   |   
            
        
 
    
 
					
					 
			 | 
			
				
        
			 |