I am new install centos6.2.
in ssh part, I could access mysql with:
>mysql -u root -p
>se659;m
then I could see
mysql>
and I could use any mysql command like: show databases;
, show columns from tableName
,etc.
But when I use php code to connect mysql,
<?php
$handle_db = mysql_connect("localhost","root","se659;m")
or die("can not connect Mysql Server");
?>
it shows can not connect Mysql Server
I use phpinfo()
I could see
and I install mysql in usr/local/mysql
Where is the problem? i feel puzzle #_@