[2025-jun-17] The SlackDocs mailing lists at https://lists.alienbase.nl/mailman/listinfo have been retired. No one has been using these lists for years and it's time to say goodbye. The list archives remain available at https://scalzi.slackware.nl/mailman/listinfo/slackdocs
[2025-jun-17] The SlackDocs Wiki has moved to a new server, in order to make it more performant.
Diferencias
Muestra las diferencias entre dos versiones de la página.
Ambos lados, revisión anteriorRevisión previaPróxima revisión | Revisión previa | ||
es:howtos:databases:install_mysql_on_slackware [2024/07/19 11:42 (UTC)] – [Manual configuration of secure access] antares_alf | es:howtos:databases:install_mysql_on_slackware [2024/07/20 04:42 (UTC)] (actual) – [Configurar MySQL] antares_alf | ||
---|---|---|---|
Línea 1: | Línea 1: | ||
- | ==“Work in progress (antares_alf)”== | ||
- | |||
====== Instalar MySQL en Slackware ====== | ====== Instalar MySQL en Slackware ====== | ||
Línea 9: | Línea 7: | ||
- Cree la(s) base(s) de datos necesaria(s) y establezca sus permisos correctamente \\ Como root, ejecute: < | - Cree la(s) base(s) de datos necesaria(s) y establezca sus permisos correctamente \\ Como root, ejecute: < | ||
- | root@darkstar# | + | root@darkstar# |
- | El usuario especificado por '' | + | |
- Habilite la ejecución del script //rc script// para iniciar MySQL automaticamente en el arranque \\ //Esto es opcional.// < | - Habilite la ejecución del script //rc script// para iniciar MySQL automaticamente en el arranque \\ //Esto es opcional.// < | ||
root@darkstar# | root@darkstar# | ||
Línea 28: | Línea 25: | ||
- Ejecute el siguiente comando, y responda las pregruntas < | - Ejecute el siguiente comando, y responda las pregruntas < | ||
root@darkstar# | root@darkstar# | ||
- | </ | + | </ |
==== Configuración manual del acceso seguro ==== | ==== Configuración manual del acceso seguro ==== | ||
Línea 40: | Línea 37: | ||
Verifique los resultados de '' | Verifique los resultados de '' | ||
</ | </ | ||
- | ===== Connecting to your MySQL server | + | ===== Conectando a su servidor |
- | - Connect to your MySQL server using the following command | + | - Conectese a su servidor |
user@darkstar$ mysql -u root -p | user@darkstar$ mysql -u root -p | ||
</ | </ | ||
- | - For security reasons you should delete the anonymous user | + | - Por razones de seguridad debes eliminar el usuario anónimo |
- | * For the localhost | + | * Para el servidor |
mysql> use mysql | mysql> use mysql | ||
mysql> SELECT user, host FROM user; | mysql> SELECT user, host FROM user; | ||
mysql> DELETE FROM user WHERE host=' | mysql> DELETE FROM user WHERE host=' | ||
</ | </ | ||
- | * If you enabled networking, you should run this command instead: < | + | * Si habilitó la red, debería ejecutar este comando en su lugar: < |
mysql> use mysql | mysql> use mysql | ||
mysql> SELECT user, host FROM user; | mysql> SELECT user, host FROM user; | ||
mysql> DELETE FROM user WHERE user=''; | mysql> DELETE FROM user WHERE user=''; | ||
</ | </ | ||
- | ==== Adding | + | ==== Agregar soporte |
- | - Change directory to the ''/ | + | - Cambie de directorio al directorio |
- | - Edit ''/ | + | - Edite el archivo |
[mysqld] | [mysqld] | ||
collation-server = utf8_unicode_ci | collation-server = utf8_unicode_ci | ||
init-connect=' | init-connect=' | ||
character-set-server = utf8 | character-set-server = utf8 | ||
- | </ | + | </ |
- | More on Unicode / UTF8 character set support is described here: [[http:// | + | En el enlace se describe más sobre la compatibilidad con el juego de caracteres |
- | ===== Troubleshooting | + | ===== Solución de problemas |
- | * Server start errors can be seen in the error log that is located by default at ''/ | + | * Los errores de inicio del servidor se pueden ver en el registro de errores que se encuentra de forma predeterminada en ''/ |
root@darkstar# | root@darkstar# | ||
</ | </ | ||
- | * Resetting the root password can be done by creating a new cnf file and add the following lines (please change the password in this example): <file sql mysql_new.cnf> | + | * Se puede restablecer la contraseña de root creando un nuevo archivo |
UPDATE mysql.user SET Password=PASSWORD(' | UPDATE mysql.user SET Password=PASSWORD(' | ||
FLUSH PRIVILEGES; | FLUSH PRIVILEGES; | ||
- | </ | + | </ |
root@darkstar# | root@darkstar# | ||
</ | </ | ||
Línea 84: | Línea 81: | ||
* Originally written by [[wiki: | * Originally written by [[wiki: | ||
+ | * Traducido al español por: [[wiki: | ||
<!-- If you are copying information from another source, then specify that source --> | <!-- If you are copying information from another source, then specify that source --> | ||
<!-- * Original source: [[http:// | <!-- * Original source: [[http:// |