MySQL notes
From Noah.org
Jump to navigationJump to searchcreate a user
This create a new root level user named USERNAME.
mysql -u root -e "grant all on *.* to USERNAME@localhost;" mysql -u root -e "grant all on *.* to USERNAME@'%';"
This create a new root level user named USERNAME.
mysql -u root -e "grant all on *.* to USERNAME@localhost;" mysql -u root -e "grant all on *.* to USERNAME@'%';"