I am not able connect Node.js project with Mamp dadabase – Phpmyadmin
Hi I am using below code to connect with Mamp data base "http://localhost:8888/phpMyAdmin/server_databases.php?server=1" but not able to do it getting below error code :- const db = mysql.createConnection({ host: 'localhost', user: 'root', password: 'root', database: 'nodejs.login', }) db.connect((error) =>{ if(error){…