Mysql with PHP on Sun Java System Web Server 7.0
Note: please refer to my last post on setting up PHP with Sun Java System Web Server. I assume that you have already created a fastcgi handler with URI pattern as '/php/*' and role as 'responder'.
<?php
$username = root;
$password = adminadmin;
$database = rakesh;
mysql_connect(localhost, $username, $password) or die ("Error connecting to mysql");
print "Connected Successfully!! <BR>";
mysql_close();
?>
$username = root;
$password = adminadmin;
$database = rakesh;
mysql_connect(localhost, $username, $password) or die ("Error connecting to mysql");
print "Connected Successfully!! <BR>";
mysql_close();
?>
If there was no error in the connection to the database, you should observe just the following, when your request to the web server is something like this: http://localhost:1894/php/testMysql.php.
-
Connected Successfully!!
-
Warning: mysql_connect() [function.mysql-connect]: Access denied for user
'root'@'localhost' (using password: YES) in C:\rak\ws71\iplanet\ias\server\work\B1\WINNT4.0_DBG.OBJ\https-test\
docs\php\testMysql.php on line 6
Error connecting to mysql
Download Opensource CMS Freely
http://phpfunda.blogspot.com/
Project management System in PHP - MySQL - http://phpfunda.blogspot.com/2007/09/project-management-system-in-php-mysql.html
content management systems - http://phpfunda.blogspot.com/2007/08/content-management-systems.html
Posted by smartcoder on February 01, 2008 at 03:11 PM IST #
Download Project Management System developed in PHP,MySQL from http://phpfunda.blogspot.com/2007/09/project-management-system-in-php-mysql.html
Posted by smartcoder on February 01, 2008 at 03:13 PM IST #
Nice blog.
Sun Web Server and MySQL database server works great, performs well. There are several sites like this blogs.sun.com run this combination supporting tens of thousands of users on a relatively modest hardware. See also, Benchmark UltraSPARC T2 beats Xeon on Consolidation of OLTP & Web
http://blogs.sun.com/ritu/entry/mysql_benchmark_us_t2_beats.
Cheers.
Posted by cvr on July 11, 2008 at 04:00 AM IST #