Fatal error: Call to undefined function mysql_connect()
-
hi, i have uploaded a .php in the captive which uses a php function to call a remote mysql server
mysql_connect("192.168.1.50", "root","admin") or die(mysql_error());
echo "Connected to MySQL Server
";but it gives me
Fatal error: Call to undefined function mysql_connect()
can someone explain this to me pls. thanks
-
could be you do not have mysql installed?
run this command and see what you get;
pkg_info | grep mysql -
I had the same problem here.
output of pkg_info | grep mysql is:
mysql-client-5.5.21 Multithreaded SQL database (client)
mysql-server-5.5.21 Multithreaded SQL database (server)After running:
touch /etc/php_dynamodules/mysql
/etc/rc.php_ini_setupphp -m | grep mysqlmysql
mysqlnd/etc/rc.restart_webgui
No result. But when I restart the webconfigurator bij the menu (option 11) phpinfo() gives me a positive
I guess a bug