Fulltext results:
- MySQL: Create Database @info:mysql:database
- ====== MySQL: Create Database ====== ==== Create Database ==== <code sql> CREATE DATABASE IF NOT EXISTS `{db}`; </code> ==== Create Database and Grant Rights to a User ==== <code sql> CREATE
- MySQL: Backup @info:mysql:database
- ====== MySQL: Backup ====== ===== Export a Database ===== <code bash> # set or replace the variables $... ER} -p${PASS} ${DB} </code> ===== Export all Databases individually ===== <code bash> # set or replace... $USER and $PASS DATE_YMD=$(date "+%Y-%m-%d") DATABASES=$(mysql --batch -u${USER} -p${PASS} mysql --execute='show databases') for db in ${DATABASES} do mysqldump --add-
- Travian Map Download Script @z:travian
- the map.sql from Travian and import it to the database. ===== config.inc ===== <code bash> # # database DB_USER="travian" # set this to your database user DB_PASS="travian" # set this to your database password DB_INST="travian" # set this to your databa
- base-exec-superuser @z:relax:api:base
- ====== base-exec-superuser ====== Executes a command as a given user. Command is executed using ssh if ... exec'', ''su'' or ''sudo''. ===== Usage ===== base-exec-superuser USER COMMAND * ''USER'': A key ... '', ''su'' or ''sudo''. * Additionally, the [[base-exec-user#usage|properties of base-exec-user]]. * ''COMMAND'': A command to be executed. It is execut
- VBoxManage (The VirtualBox CLI) @info:virtualbox
- [--register] [--basefolder <path>] [--uuid... [--uart<1-N> off|<I/O base> <IRQ>] [--uartmode<1... oups <group>, ...] [--basefolder <basefolder>] [--uuid <uuid>] [--register
- base-net-load-url @z:relax:api:base
- ====== base-net-load-url ====== Loads a file from an URL and outputs it to STDOUT. ===== Usage ===== base-net-load-url URL * ''URL'': the URL to load. ... ed by the URL. ===== Examples ===== <code bash> base-net-load-url "${service_url}" </code> <code bash> PASSWORD=$(base-net-load-url ${PASSWORD_URL}) </code>
- 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 User @info:mysql:user
- BY '{passwd}'; </code> ==== Create User and Database ==== * Usually, ''{user}'' == ''{db}'' <code ... ER_HOUR 0 MAX_USER_CONNECTIONS 0 ; CREATE DATABASE IF NOT EXISTS `{db}`; GRANT ALL PRIVILEGES ON `{... ode> Simpler Alternative: <code sql> CREATE DATABASE IF NOT EXISTS `dbname` DEFAULT CHARACTER SET = 'u... ALL ON `dbname`.* TO 'dbuser'@'dbhost' IDENTIFIED BY 'dbpass'; </code> {{tag>admin database mysql sql}}
- How To Create a Moveable VM with VirtualBox @blog:2010
- ZE=${a:-${DISK_SIZE}} </code> The main part. The base directory, the VM and the disk image are created.... DIR}" ${VBOX} -q createvm --name "${VM_NAME}" --basefolder "${BASE_DIR}" ${VBOX} -q registervm "${VM_DIR}/${VM_NAME}.xml" ${VBOX} -q storagectl "${VM_NAME}"
- base-ssh-login @z:relax:api:base
- ====== base-ssh-login ====== Logs into a remote host using ssh. This can be used to open a remote sesss... ususally it's used by other methods (especially [[base-exec-user]]) to remotely execute a command. ===== Usage ===== base-ssh-login SERVICE [ COMMAND ] * ''SERVICE'': a
- MySQL: Remove User @info:mysql:user
- R '{user}'@'%'; </code> ==== Remove User and Database ==== * Usually, {user} == {db} <code sql> DROP USER '{user}'@'%'; DROP DATABASE '{db}'; </code> {{tag>admin database mysql sql}}
- base-repo-get-value @z:relax:api:base
- ====== base-repo-get-value ====== Loads a service configuration from the repository and outputs a singl... r the given key) to STDOUT. ===== Usage ===== base-repo-get-value SERVICE KEY * ''SERVICE'': A ke... ervice must be a zone (have $ZONE set) if [ -z "$(base-repo-get-value ${service} ZONE)" ]; then echo "C
- base-exec-user @z:relax:api:base
- ====== base-exec-user ====== Executes a command as a given user. Command is executed using ssh if the user is not on localhost. ===== Usage ===== base-exec-user USER COMMAND * ''USER'': A key of an... . It is executed either locally or remote using [[base-ssh-login]]. ===== Returns ===== Returns the ou
- base-repo-get-service @z:relax:api:base
- ====== base-repo-get-service ====== Loads a service configuration from the repository and outputs it to STDOUT. ===== Usage ===== base-repo-get-service SERVICE * ''SERVICE'': a key ... ==== <code bash> # # get service config config=$(base-repo-get-service ${service}) if [ $? != 0 ]; then