Fulltext results:
- MySQL: Backup @info:mysql:database
- ====== MySQL: Backup ====== ===== Export a Database ===== <code bash> # set or replace the variables $USER, $PASS and $DB mysqldump --add-drop-table -u${USER} -p${PASS} ${DB} </... nd $PASS DATE_YMD=$(date "+%Y-%m-%d") DATABASES=$(mysql --batch -u${USER} -p${PASS} mysql --execute='show databases') for db in ${DATABASES} do mysqldump --
- MySQL: Change Password @info:mysql:user
- ====== MySQL: Change Password ====== * Replace ''{passwd}'' with the password of the user. * Replace... ternatively use the following: <code sql> UPDATE mysql.user SET Password=PASSWORD('{passwd}') WHERE User='{user}'; FLUSH PRIVILEGES; </code> {{tag>admin database mysql password sql}}
- MySQL: Create User @info:mysql:user
- ====== MySQL: Create User ====== ==== Create User ==== <code sql> CREATE USER '{user}'@'%' IDENTIFIED B... ALL ON `dbname`.* TO 'dbuser'@'dbhost' IDENTIFIED BY 'dbpass'; </code> {{tag>admin database mysql sql}}
- MySQL: Revoke Permissions @info:mysql:permissions
- ====== MySQL: Revoke Permissions ====== ==== Revoke Permissions ==== <code sql> REVOKE ALL PRIVILEGES ON `{db}` . * FROM '{user}'@'%'; </code> {{tag>admin database mysql sql}}
- MySQL: Grant Permissions @info:mysql:permissions
- ====== MySQL: Grant Permissions ====== ==== Grant Permissions ==== <code sql> GRANT ALL PRIVILEGES ON `{db}` . * TO '{user}'@'%'; </code> {{tag>admin database mysql sql}}
- MySQL: View Permissions @info:mysql:permissions
- ====== MySQL: View Permissions ====== ==== View Permissions ==== <code sql> SHOW PRIVILEGES; SHOW GRANTS FOR '{user}'@'%'; </code> {{tag>admin database mysql sql}}
- MySQL: Remove User @info:mysql:user
- ====== MySQL: Remove User ====== ==== Remove User ==== <code sql> DROP USER '{user}'@'%'; </code> ====... {db} <code sql> DROP USER '{user}'@'%'; DROP DATABASE '{db}'; </code> {{tag>admin database mysql sql}}
- MySQL: Remove Database @info:mysql:database
- ====== MySQL: Remove Database ====== ==== Remove Database ==== <code sql> DROP DATABASE IF EXISTS `{db}`; </code> {{tag>admin database mysql sql}}
- MySQL: Create Database @info:mysql:database
- ====== MySQL: Create Database ====== ==== Create Database ==== <code sql> CREATE DATABASE IF NOT EXISTS... STS `{db}`; GRANT ALL PRIVILEGES ON `{db}` . * TO '{user}'@'%'; </code> {{tag>admin database mysql sql}}
- MySQL @info:mysql
- ====== MySQL ====== {{indexmenu>.}}