Friday, February 10, 2012

LAMP Terminologies

log in to mysql server mysql -u root -p
manage mysql server http://localhost/phpmyadmin/
set up password for root account mysqladmin -u root -p password yourpassword
create a database named mydb mysqladmin -u root -p create mydb
More information can be found at https://help.ubuntu.com/community/ApacheMySQLPHP

See system default values for a new user #/usr/sbin/useradd -D
Change the default shell #useradd -D -s /bin/bash
Add a new user # /usr/sbin/useradd test
Remove a user # /usr/sbin/userdel -r test
Change SHELL for user temp # chsh -s /bin/csh temp

No comments:

Post a Comment

Mounting USB drives in Windows Subsystem for Linux

Windows Subsystem for Linux can use (mount): SD card USB drives CD drives (CDFS) Network drives UNC paths Local storage / drives Drives form...