skip to Main Content

Php versions – Getting error of php version in Laravel 6 composer update even though my php version is 7.2.1

I downloaded a laravel 6 demo project and setting it up in my mac mamp. Initialy my php version was 7.1.23 and i was getting this error. Warning: require(/Applications/MAMP/htdocs/laravel_demo/public/../vendor/autoload.php): failed to open stream: No such file or directory in /Applications/MAMP/htdocs/laravel_demo/public/index.php…

VIEW QUESTION

Error: connect ECONNREFUSED into node.js when i am start my .js server file – Apache

Error: connect ECONNREFUSED Ip address:3306 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14) -------------------- at Protocol._enqueue (/App Directory Pat /node_modules/mysql/lib/protocol/Protocol.js:144:48) at Protocol.handshake (/**App Directory Path**/node_modules/mysql/lib/protocol/Protocol.js:51:23) at Connection.connect (/**App Directory Path**/node_modules/mysql/lib/Connection.js:119:18) at Object.<anonymous> (/var/www/html/app/videostatus/app.js:17:12) at Module._compile (internal/modules/cjs/loader.js:776:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) at Module.load (internal/modules/cjs/loader.js:653:32) at…

VIEW QUESTION

PDO run script from .sql file – Phpmyadmin

How correctly run sql file for insert in MySQL? Try use PDO: $mysql_host = "localhost"; $mysql_database = "planets_test"; $mysql_user = "root"; $mysql_password = ""; # MySQL with PDO_MYSQL $dbh= new PDO("mysql:host=$mysql_host;dbname=$mysql_database", $mysql_user, $mysql_password); $query = file_get_contents("planets_db.sql"); $stmt = $dbh->prepare($query); $stmt->execute();…

VIEW QUESTION
Back To Top
Search