I can install my plugin in localhost but not in my server

Use this code

register_activation_hook(__FILE__, 'rating_install');
register_deactivation_hook(__FILE__, 'rating_uninstall');

function rating_install(){        
    global $wpdb;
    $table_name = $wpdb->prefix."rating";
    $create = "CRETA TABLE ".$table_name." ( "
            . "id INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY, "
            . "url TINYTEXT NOT NULL, "
            . "descripcion TINYTEXT NOT NULL ) ";    
    $wpdb->query($create);
}

function rating_uninstall(){
    global $wpdb;
    $table_name = $wpdb->prefix."rating";
    $drop = "DROP TABLE IF EXISTS ".$table_name;
    $wpdb->query($drop);
}