search

Author: jimmy1248


No module named ‘apt_pkg’

Posted by in Linux, Python

How to create a mysql database, user and grant permissions

Posted by in Computers, Linux

mysql -u root -p mysql> CREATE DATABASE <name>; mysql> CREATE USER ‘user’@’localhost’ IDENTIFIED BY ‘password’ mysql> GRANT ALL PRIVILAGES ON dbname.* TO ‘user’@’localhost’ https://www.digitalocean.com/community/tutorials/how-to-create-a-new-user-and-grant-permissions-in-mysql


Enough to use vi

Posted by in Linux

i – insert mode esc – command mode :wq – write to file and quit :w [file name] – if you didn’t enter a file name to begin with :ZZ to save and quit :q! to quit without saving


Add Swap to Ubuntu

Posted by in Linux

How to add swap to Ubuntu This only the commands. Full reference can be found here. sudo fallocate -l 4G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile sudo swapon -s sudo nano /etc/fstab /swapfile none swap sw 0 0


Linux Command Line Cheat Sheet

Posted by in Linux

Basic Commands ls   ls -als -lcdcd folder/pwdmkdir – make directorymkdir -p folder/folder/ – create multi level folders List distro info cat /etc/*-release lsb_release -a cat /proc/version Adding users and group adduser user addgroup group adduser user group (re-login for it to take effect) Remove password from a user passwd -d <user> Add to a remote…


Welcome to 1248

Posted by in General

This site will be aimed primarily at programming, gaming, computers and will include a few other things.


close
Categories

Hi, guest!

settings