mysql> select substring_index(name,'/',3) from ppp;
+----------------------------------------------------+
| substring_index(name,'/',3) |
+----------------------------------------------------+
| http://dev.mysql.com |
| http://www.phpfaq.ru |
+----------------------------------------------------+
2 rows in set (0.00 sec)