You are here

function mysql_is_available in Drupal 6

Same name and namespace in other branches
  1. 5 includes/install.mysql.inc \mysql_is_available()

Check if MySQL is available.

Return value

TRUE/FALSE

1 call to mysql_is_available()
drupal_test_mysql in includes/install.mysql.inc
Check if we can connect to MySQL.

File

includes/install.mysql.inc, line 11

Code

function mysql_is_available() {
  return function_exists('mysql_connect');
}