Please start any new threads on our new 
    site at https://forums.sqlteam.com.  We've got lots of great SQL Server
    experts to answer whatever question you can come up with.
    
        
            
                
                    
                        
                            
                                | Author | 
                                
                                 Topic  | 
                             
                            
                                    | 
                                         eric6630 
                                        Starting Member 
                                         
                                        
                                        1 Post  | 
                                        
                                        
                                            
                                            
                                             Posted - 2011-09-13 : 22:18:40
                                            
  | 
                                             
                                            
                                            quote: #!/bin/bash### Database InformationsDBUSER='user'DBPASS='pass'DBHOST='x.x.x.x'DBNAME='dbase'user_name=`head -n1 $1 | tail -1` #first line -> Usernamepass_word=`head -n2 $1 | tail -1 ` #second line -> Passworduser_query=`mysql -u $DBUSER -p$DBPASS -D $DBNAME -h $DBHOST --skip-column-name -e "SELECT databasetable FROM databasename WHERE ( (active = '1') AND (username = '$user_name') AND (password = ('$pass_word')) );" $DBNAME`if [ "$user_query" == "$user_name" ]; thenexit 0elseexit 1fi 
  hican anyone revise this script?i need to authentication via remote server but this script doesn't work out please help methank youim using cent OS with mysql-server and phpmyadmin | 
                                             
                                         
                                     | 
                             
       
                            
                       
                          
                            
                                    | 
                                     tkizer 
                                    Almighty SQL Goddess 
                                     
                                    
                                    38200 Posts  | 
                                    
                                      
                                     | 
                                   
                            
                            
                                | 
                                    
                                      
                                     
                                    
                                 | 
                             
                         
                     | 
                 
             
         |