i installed easy php which has both the Apache and MySql server,but when i try to connect to mysql in php using the mysql_connect() ,im not setting any parameters there is an error notifying me that it cant connect ,are there any configurations that i have to do to the mysql so that it connects,im mainly concerned on the issue of clients who can connect to the mysql.pliz help
mysql connection
Collapse
X
-
You are not giving php much chance here.using the mysql_connect() ,im not setting any parameters
Why are you passing empty parameters? -
i have tried to pass some parameters ,but the issue is it seems as if there are some configurations that you have to do so that those parameters ie host,username and password ,will be recognised,so that is what i really want to understand.Originally posted by code greenYou are not giving php much chance here.
Why are you passing empty parameters?Comment
-
i have checked the examples and there seems to be some enlightment now,but still the issue remains,on the issue of the parameters,when i try to use my own host name,username and password ,there is an error that those parameters are not recognised and when i dont pass any parameters ie will be assuming that it uses the default parameters still there is this error CANNOT CONNECT USING ODBC@localhost .what could be the problem !!!!where do i first set those parameters so that there will recognised,and what do you do so that the default parameters wil be recognisedOriginally posted by mwasifCheckout the examples how to connect to MySQL using mysql_connect.Comment
Comment