I can't connect or get a response from the mysql_connect() operation. Running linux with apache and mysql
netstat -a | grep mysql
tcp 0 0 *:mysql *:* LISTEN
unix 2 [ ACC ] STREAM LISTENING 15374 /var/lib/mysql/mysql.sock
here's the code I'm trying to run:
<?php
$link = mysql_connect ("localhost:15374", "username", "pass")
or die ("Could not connect");
print ("Connected successfully");
mysql_close ($link);
?>
I have more complicated code, but it boils down to this and I can't connect.. is there another way for me to test my code outside of php? I don't know why it's not connecting..
netstat -a | grep mysql
tcp 0 0 *:mysql *:* LISTEN
unix 2 [ ACC ] STREAM LISTENING 15374 /var/lib/mysql/mysql.sock
here's the code I'm trying to run:
<?php
$link = mysql_connect ("localhost:15374", "username", "pass")
or die ("Could not connect");
print ("Connected successfully");
mysql_close ($link);
?>
I have more complicated code, but it boils down to this and I can't connect.. is there another way for me to test my code outside of php? I don't know why it's not connecting..