Definitely skip it. Using depreciated technologies is never a good idea especially in a production environment. mysqli and pdo
are better and much safer solutions. PDO is my personal fav ;). Here is a connection to get you started.
<?php
define("DSN", "mysql:host=localhost;dbname=db_name");
define("USERNAME", "root");
define("PASSWORD", "");
$options = array(PDO::ATTR_PERSISTENT => true);
try{
$conn = new PDO(DSN, USERNAME, PASSWORD, $options);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
echo "connection successful";
}catch (PDOException $ex){
echo "A database error occurred ".$ex->getMessage();
}