J
Jascaentipol
Guest
i have been having a lot of problems with a connection to my mysql database using php scripting. here is my script:
<?php
$hostname='localhost';
$user='jasonyo';
$pass='12345677';
$dbase='jasonyo';
$connection = mysql_connect($hostname,
$user,
$pass)
or die ("Can't connect to MySQL");
?>
and i continously get this error:
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/f/r/e/freedomodds/html/jasonyo/database.php on line 8
Can't connect to MySQL
wtf is going on here, and can someone PLEASE help me?!? thank you so much!
<?php
$hostname='localhost';
$user='jasonyo';
$pass='12345677';
$dbase='jasonyo';
$connection = mysql_connect($hostname,
$user,
$pass)
or die ("Can't connect to MySQL");
?>
and i continously get this error:
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2) in /home/content/f/r/e/freedomodds/html/jasonyo/database.php on line 8
Can't connect to MySQL
wtf is going on here, and can someone PLEASE help me?!? thank you so much!