Unable to connect to mysql
Posted: Tue Jun 29, 2010 12:25 pm
I'm trying to connect to mysql from php.
But i'm unable to connect.
I'm getting all these errors instead..
Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Calcutta' for '5.5/no DST' instead in F:\Program Files\Apache2.2\htdocs\index.php on line 8 Warning: mysql_connect(): [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in F:\Program Files\Apache2.2\htdocs\index.php on line 8 Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Calcutta' for '5.5/no DST' instead in F:\Program Files\Apache2.2\htdocs\index.php on line 8 Warning: mysql_connect(): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in F:\Program Files\Apache2.2\htdocs\index.php on line 8 Warning: main(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Calcutta' for '5.5/no DST' instead in F:\Program Files\Apache2.2\htdocs\index.php on line 8 Fatal error: Maximum execution time of 30 seconds exceeded in F:\Program Files\Apache2.2\htdocs\index.php on line 8
Apache and PHP are working fine.
Problem occurs only when i try to connect to mysql.
I have enabled the mysql extension in php.ini file
Thanx
Ratzzak
But i'm unable to connect.
I'm getting all these errors instead..
Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Calcutta' for '5.5/no DST' instead in F:\Program Files\Apache2.2\htdocs\index.php on line 8 Warning: mysql_connect(): [2002] A connection attempt failed because the connected party did not (trying to connect via tcp://localhost:3306) in F:\Program Files\Apache2.2\htdocs\index.php on line 8 Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Calcutta' for '5.5/no DST' instead in F:\Program Files\Apache2.2\htdocs\index.php on line 8 Warning: mysql_connect(): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in F:\Program Files\Apache2.2\htdocs\index.php on line 8 Warning: main(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Calcutta' for '5.5/no DST' instead in F:\Program Files\Apache2.2\htdocs\index.php on line 8 Fatal error: Maximum execution time of 30 seconds exceeded in F:\Program Files\Apache2.2\htdocs\index.php on line 8
Apache and PHP are working fine.
Problem occurs only when i try to connect to mysql.
I have enabled the mysql extension in php.ini file
Thanx
Ratzzak