npm cant find package.json

forgot to setup the directory for express: express <yourdirectory> Once you do that you should be able to see a bunch of files, you should then run the command: npm install -d ...

View More
  Dibaca 856 kali

Reset the MySQL OR MariaDB Root Password

To change the MySQL/MariaDB root password, follow these steps: Ensure that the MySQL/MariaDB server is running. Open a new Linux terminal. Use the mysqladmin command-line utility to alter the MySQL/MariaDB password, using the following syntax: mysqladmin --user=root password "newpassword"OR ALTER USER root@localhost IDENTIFIED VIA mysql_native_password USING PASSWORD("verysecret") ...

View More
  Dibaca 925 kali

MySQL: ERROR 1040: Too many connections

This basically tells that MySQL handles the maximum number of connections simultaneously and by default it handles 100 connections simultaneously. These following reasons cause MySQL to run out connections. Slow Queries Data Storage Techniques Bad MySQL configuration I was able to overcome this issues by doing the followings. Open MySQL command line tool and type, show variables like "max_connections"; This will return you something like this. +-----------------+----- ...

View More
  Dibaca 995 kali