{"id":15711,"date":"2023-09-20T18:41:24","date_gmt":"2023-09-21T00:41:24","guid":{"rendered":"https:\/\/sada.services\/?p=15711"},"modified":"2023-09-20T18:52:30","modified_gmt":"2023-09-21T00:52:30","slug":"mysql-en-debian-12","status":"publish","type":"post","link":"https:\/\/sada.services\/?p=15711","title":{"rendered":"MYSQL en Debian 12"},"content":{"rendered":"\n<p>Esta gu\u00eda explica como instalar mysql en debian 12<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Dependencias<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install apt-transport-https lsb-release ca-certificates curl dirmngr gnupg<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ingresamos la carpeta tmp<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/tmp<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>NOTA: si se esta instalado en proxmox, primero debe instalar<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install lsb-release -y<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Descargamos el archivo<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>wget https:\/\/dev.mysql.com\/get\/mysql-apt-config_0.8.9-1_all.deb<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>O la versi\u00f3n mas reciente de: <a rel=\"noreferrer noopener\" href=\"https:\/\/dev.mysql.com\/downloads\/repo\/apt\/\" target=\"_blank\">https:\/\/dev.mysql.com\/downloads\/repo\/apt\/<\/a> <a href=\"https:\/\/repo.mysql.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/repo.mysql.com\/<\/a><\/li>\n\n\n\n<li>Mandamos a instalar<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>dpkg -i  mysql-apt-config_0.8.9-1_all.deb<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Instalamos Server &amp; Cluster<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apt update<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"733\" height=\"496\" src=\"\/wp-content\/uploads\/2019\/09\/2-1.png\" alt=\"\" class=\"wp-image-1983\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/2-1.png 733w, https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/2-1-300x203.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/2-1-120x80.png 120w\" sizes=\"(max-width: 733px) 100vw, 733px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Seleccionamos la versi\u00f3n<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"737\" height=\"499\" src=\"\/wp-content\/uploads\/2019\/09\/3-1.png\" alt=\"\" class=\"wp-image-1984\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/3-1.png 737w, https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/3-1-300x203.png 300w, https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/3-1-120x80.png 120w\" sizes=\"(max-width: 737px) 100vw, 737px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Damos Aceptar<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"718\" height=\"430\" src=\"\/wp-content\/uploads\/2019\/09\/Selecci\u00f3n_011-1-1.png\" alt=\"\" class=\"wp-image-1986\" srcset=\"https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/Selecci\u00f3n_011-1-1.png 718w, https:\/\/sada.services\/wp-content\/uploads\/2019\/09\/Selecci\u00f3n_011-1-1-300x180.png 300w\" sizes=\"(max-width: 718px) 100vw, 718px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Mandamos a instalar<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>apt install default-mysql-server -y<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Mandamos a configurar<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql_secure_installation<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Configuramos<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB\n      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!\n\nIn order to log into MariaDB to secure it, we'll need the current\npassword for the root user.  If you've just installed MariaDB, and\nyou haven't set the root password yet, the password will be blank,\nso you should just press enter here.\n\nEnter current password for root (enter for none): \nOK, successfully used password, moving on...\n\nSetting the root password ensures that nobody can log into the MariaDB\nroot user without the proper authorisation.\n\nSet root password? &#91;Y\/n] Y\nNew password: HB3\nRe-enter new password: HB3\nPassword updated successfully!\nReloading privilege tables..\n ... Success!\n\nBy default, a MariaDB installation has an anonymous user, allowing anyone\nto log into MariaDB without having to have a user account created for\nthem.  This is intended only for testing, and to make the installation\ngo a bit smoother.  You should remove them before moving into a\nproduction environment.\n\nRemove anonymous users? &#91;Y\/n] Y\n ... Success!\n\nNormally, root should only be allowed to connect from 'localhost'.  This\nensures that someone cannot guess at the root password from the network.\n\nDisallow root login remotely? &#91;Y\/n] Y\n ... Success!\n\nBy default, MariaDB comes with a database named 'test' that anyone can\naccess.  This is also intended only for testing, and should be removed\nbefore moving into a production environment.\n\nRemove test database and access to it? &#91;Y\/n] Y\n - Dropping test database...\n ... Success!\n - Removing privileges on test database...\n ... Success!\n\nReloading the privilege tables will ensure that all changes made so far\nwill take effect immediately.\n\nReload privilege tables now? &#91;Y\/n] \n ... Success!\n\nCleaning up...\n\nAll done!  If you've completed all of the above steps, your MariaDB\ninstallation should now be secure.\n\nThanks for using MariaDB!<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Como instalar mysql en debian 10<\/p>\n","protected":false},"author":2,"featured_media":854,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[564,49],"class_list":["post-15711","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mysql","tag-debian12","tag-mysql"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"_links":{"self":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/15711","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15711"}],"version-history":[{"count":4,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/15711\/revisions"}],"predecessor-version":[{"id":15715,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/posts\/15711\/revisions\/15715"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=\/wp\/v2\/media\/854"}],"wp:attachment":[{"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15711"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sada.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}