![]() ![]() MySQL is a database server that's also been in use for a long time, but PostgreSQL has surpassed it in capability, and it's also available under an open source license. Nginx for example is typically much more efficient due to its threading model. There are plenty of reasons WAMP and such aren't all that useful, but they certainly won't cause something bad to happen to your computer.Īpache HTTPD is a web server that's been used for an eternity, but we have better alternatives. Anyone that tells you to do something with such absolute statements and without explanation has no business trying to teach. Mysql_select_db(DB_DATABASE,$connection) īut our professor said to us"to dont ever install xampp or wamp in our computer, something bad will happen to the computer and it will just complicates everything"įor starters, find a new professor. $connection=mysql_connect(DB_HOST, DB_USER, DB_PASSWORD) or die(mysql_error()) ![]() 3) How does the MySQL Connectivity you need to do in this case define('DB_HOST', 'localhost:3307') 2) And I change the default post in WAMP that is 80 to 8080 for apache and MySQL default port from 3306 to 3307 for MYSAL So your localhost will work something like this STEPS: 1) Xampp was already installed so I did not make any changes over there keep the default port 80 for apache and 3306 for the MySQL When trying to access the project folder on localhost:8080/project_name it threw me the error i.e " No connection could be made because the target machine actively refused it." I also change the default port from 80 to 80 to 3307 for WAMP and now I am able to access the PHPMyAdmin but not able to access the project with an older version i.e PHP 5.6 So I configured the Wampp of a separate directory and different PHP and MySQL versions. I am facing this problem I have Xampp and WAMP both in separate drive and XAMPP work with its default port 80 for PHP and 3306 for MySQL. If required you can install but need to make sure few things please check below the whole case: ![]()
0 Comments
Leave a Reply. |