Fulltext results:
- MySQL: Create User
- code> ==== Create User and Database ==== * Usually, ''{user}'' == ''{db}'' <code sql> CREATE USER... 0 ; CREATE DATABASE IF NOT EXISTS `{db}`; GRANT ALL PRIVILEGES ON `{db}` . * TO '{user}'@'%'; </code> Simpler Alternative: <code sql> CREATE DATABASE IF NOT EXIS... TS `dbname` DEFAULT CHARACTER SET = 'utf8'; GRANT ALL ON `dbname`.* TO 'dbuser'@'dbhost' IDENTIFIED BY
- MySQL: Remove User
- code> ==== Remove User and Database ==== * Usually, {user} == {db} <code sql> DROP USER '{user}'@
- MySQL: Change Password
- '{passwd}'; FLUSH PRIVILEGES; </code> Or you can alternatively use the following: <code sql> UPDATE