informatica:linux:mysql:instalacion
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatica:linux:mysql:instalacion [2015/04/13 20:19] – external edit 127.0.0.1 | informatica:linux:mysql:instalacion [2017/10/20 09:52] (current) – [Errores] javi | ||
|---|---|---|---|
| Line 31: | Line 31: | ||
| #mysql -u < | #mysql -u < | ||
| + | ===== Mostrar BBDD ===== | ||
| + | mysql> show databases; | ||
| + | < | ||
| + | +--------------------+ | ||
| + | | Database | ||
| + | +--------------------+ | ||
| + | | information_schema | | ||
| + | | mysql | | ||
| + | | performance_schema | | ||
| + | | phpmyadmin | ||
| + | | pingpong | ||
| + | +--------------------+ | ||
| + | 5 rows in set (0.00 sec) | ||
| + | </ | ||
| Line 932: | Line 945: | ||
| 1 row in set (0.01 sec) | 1 row in set (0.01 sec) | ||
| </ | </ | ||
| + | ===== Strict Mode ===== | ||
| + | |||
| + | He conocido de su existencia a través de django: | ||
| + | |||
| + | https:// | ||
| + | |||
| + | Django recomienda habilitar el modo estricto, con la configuración " | ||
| + | |||
| + | 1. Editar archivo de configuración: | ||
| + | |||
| + | < | ||
| + | sudo cp / | ||
| + | sudo vim / | ||
| + | </ | ||
| + | |||
| + | 2. Y añadir en la sección " | ||
| + | |||
| + | < | ||
| + | ... | ||
| + | [mysqld] | ||
| + | sql-mode = " | ||
| + | </ | ||
| + | |||
| + | 3. Reiniciar el servicio | ||
| + | |||
| + | sudo service mysql restart | ||
| + | | ||
| + | 4. Verificarlo | ||
| + | |||
| + | 4.1. Iniciar sesión como usuario " | ||
| + | |||
| + | sudo mysql -u root | ||
| + | | ||
| + | 4.2. Ver el valor de la variable " | ||
| + | |||
| + | SELECT @@SESSION.sql_mode; | ||
| + | |||
| + | Valor esperado: | ||
| + | |||
| + | < | ||
| + | +---------------------+ | ||
| + | | @@SESSION.sql_mode | ||
| + | +---------------------+ | ||
| + | | STRICT_TRANS_TABLES | | ||
| + | +---------------------+ | ||
| + | </ | ||
| + | |||
| + | |||
| ===== Errores ===== | ===== Errores ===== | ||
informatica/linux/mysql/instalacion.1428956385.txt.gz · Last modified: (external edit)
