method createUser documentation in bbn\Db\Languages\Mysql
Creates a database user
function(string $user, string $pass, string $db = NULL)
  {
    if (null === $db) {
      $db = $this->getCurrent();
    }
    if (($db = $this->escape($db))
      && bbn\Str::checkName($user, $db)
      && (strpos($pass, "'") === false)
    ) {
      return (bool)$this->rawQuery(
        <<getHost()}' IDENTIFIED BY '$pass';
GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,INDEX,ALTER
ON $db . *
TO '$user'@'{$this->getHost()}';
MYSQL
      );
    }
    return false;
  }
  Creates a database user BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
  
  
    
    
      
        
        
      
    
    
    
      
      
      
      
      
        
          
          
          
          
          
          
          
          
            
              
                
              
            
            
              
              This website uses cookies to ensure you get the best experience on our website.                
                
              
              
                
                
              
             
           
          
          
          
            
            © 2011-2025 
BBN Solutions