My site was rebuilt in 2012 using MySQL. Now that I'm rebuilding everything, I'm considering the switch.
I know that MySQL has been deprecated since, what, 2009? But here we are 8 years later and it still works, so I don't know if there's any real urgency to changing.
I've read that MySQL benchmarks slightly faster than either MySQLi or PDO, so that's a +1 for sticking with MySQL.
Both MySQLi and PDO allow named parameters, which is probably better from a security standpoint, but I've never had any problems just using mysql_real_escape_string() so I don't know if I really care about that too much.
So, other than the fact that MySQL might, some day, be removed (which I suspect is unlikely; most server providers will keep it bundled as a legacy system so as to not inconvenience customers), what is the advantage to switching to MySQLi or PDO?
It looks like changing to MySQLi will be easier from a coding point of view (most everything is just adding the "i" to the command, and sometimes adding $dbh to the parameters for seemingly arbitrary reasons; eg, mysql_query($query) becomes mysqli_query($dbh, $query)). So if I'm switching to one of them from MySQL, then why would I want to use PDO over MySQLi?