Skip to content

anandpatel504/Simple-knex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Basic knex implementation with MySQL database

In this project I have implmented basic knex operations with MySQL database

Requirements ↴

    $ MySQL
    $ knex

Installation process and Execution:

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.

  1. Update your system ↴

    sudo apt-get update
    
  2. Install MySQL server in your system ↴

    sudo apt-get install mysql-server
    
  3. Open MySQL shell ↴

    sudo mysql -u root -p
    
  4. 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
  1. FLUSH your server ↴

    FLUSH PRIVILEGES;
    
  • Install knex query-builder in your system.

      npm install knex --save
    

About

Implemented basic knex with MySQL database.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published