In this project I have implmented basic knex
operations with MySQL
database
$ MySQL
$ knex
First of all If you'are using Linux-based-OS
, open your terminal
and install the latest version of mysql
database into your system. by writing the following commands.
-
Update your system ↴
sudo apt-get update
-
Install
MySQL
server in your system ↴sudo apt-get install mysql-server
-
Open
MySQL
shell ↴sudo mysql -u root -p
-
Set password to your
MySQL
server ↴ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'Anand@18';
- Note- password should be strong. Exa:- Anand@18
-
FLUSH your server ↴
FLUSH PRIVILEGES;
-
Install
knex
query-builder in your system.npm install knex --save