Skip to main content

Si olvidaste la contraseña de root@localhost de MySQL, aquí como resolverslo

Perdiste aquel papelito donde dejaste anotado la contraseña de root@localhost de tu servidor MySQL y te ecnuentras con:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

Eso le pasa a muchos y para ello te recomiendo que uses KeePass2.

Te dejo unos sencillos pasos para reconfigurar MySQL y restablecer tu contrraseña:




$ apt-cache policy mysql-server
mysql-server:
  Installed: 5.5.43-0ubuntu0.12.04.1
  Candidate: 5.5.43-0ubuntu0.12.04.1
  Version table:
 *** 5.5.43-0ubuntu0.12.04.1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
        100 /var/lib/dpkg/status
     5.5.22-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
[1]   Exit 1                  sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking
[2]-  Exit 1                  sudo /usr/sbin/mysqld --skip-grant-tables --skip-networking
$ sudo dpkg-reconfigure mysql-server-5.5
En este comando debes colocar la misma versión de MySQL que te arrojó el comando anterior, en este ejemplo 5.5
Listo, te pedirá que ingreses una nueva contraseña de root.

$ mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 36
Server version: 5.5.38-0ubuntu0.12.04.1 (Ubuntu)

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> CREATE database mesdelpadre;

Disfruten.




Comments

Popular posts from this blog

Análisis de la película “K19” desde la perspectiva de Braybrooke y Lindblom

Introducción En las siguientes páginas se analizará una película dirigida y producida por Kathryn Bigelow llamada “K19 – The Widowmaker” estrenada en el año 2002, basada en hechos reales que fueron ocultados durante 30 años en la extinta Unión Soviética. Para dicho análisis se utilizará como base teórica el capítulo 5, “The Strategy of  Disjointed Incrementalism”, del libro Strategy of Decisión de David Braybrooke y Charles E. Lindblom. El motivo de dicho análisis es intentar relacionar la teoría del pensamiento estratégico en la toma de decisiones según la perspectiva de la lectura. 

The apocalyptic AI narratives era

 The AI industry may be entering a strange phase where narrative engineering advances faster than the underlying engineering itself. That does not mean frontier AI is fake. It is not. The progress is real. Models are improving quickly in coding, search, reasoning assistance, content generation, and cybersecurity analysis. Anyone working seriously in enterprise technology can already see the productivity impact. AI is becoming operationally useful. But something else is happening in parallel. Every few months, another company announces that its newest model is so powerful, so dangerous, or so transformative that humanity must proceed carefully. The language changes slightly each cycle, but the structure remains almost identical: existential concern, dramatic warnings, selective access, media amplification, institutional reaction, investor excitement, and another jump in valuation. At some point, it becomes reasonable to ask whether we are witnessing purely a technological revolution...

Análisis de la película “Thirteen Days” desde la perspectiva de Weber y Graham T. Allison

Introducción En las siguientes páginas se analizará una película dirigida por Roger Donaldson llamada “Thirteen Days” estrenada en el año 2000, basada en hechos reales que fueron vividos a nivel mundial donde se vieron involucrados tres países, Cuba como el foco central de la discordia entre los Estados Unidos y la Unión Soviética. Para dicho análisis se utilizará como base teórica los puntos 1 y 2 del Tomo I del libro Economía y Sociedad de Max Weber. Adicionalmente se tomará el Capítulo 1: “Model I: The Racional Actor” del libro Essence of Decision. Explaining the Cuban Missile Crisis de Graham T. Allison. El motivo de dicho análisis es intentar relacionar la teoría de la dominación y de los modelos conceptuales para la toma de decisiones según las perspectivas de las lecturas.