domingo, 8 de octubre de 2017

How to Uninstall a DotNet CLI version on Mac OS X / Como desinstalar DotNet CLI on Mac OS X

# delete the dotnet folder under /usr/local/share/dotnet
1. cd /usr/local/share/dotnet && ls
2. sudo rm -rf dotnet

# delete the dotnet reference file at /etc/paths.d/dotnet
1. cd /etc/paths.d && ls
2. sudo rm dotnet

************************************************************

# Eliminar la caroeta dotnet en la siguiente ruta: /usr/local/share/dotnet
1. cd /usr/local/share/dotnet && ls
2. sudo rm -rf dotnet

# Eliminar la referencia del archivo dotnet en la siguiente ruta: /etc/paths.d/dotnet
1. cd /etc/paths.d && ls
2. sudo rm dotnet


How to reset MySQL root password on OS X / Como reiniciar la contraseña en MySQL para el usuario root

  1. Stop the mysqld server. Typically this can be done by from 'System Prefrences' > MySQL > 'Stop MySQL Server'
  2. Start the server in safe mode with privilege bypass
    From a terminal:
    sudo /usr/local/mysql/bin/mysqld_safe --skip-grant-tables
  3. In a new terminal window:
    sudo /usr/local/mysql/bin/mysql -u root
    UPDATE mysql.user SET authentication_string=PASSWORD('NewPassword') WHERE User='root';
    FLUSH PRIVILEGES;
    \q
  4. Stop the mysqld server again and restart it in normal mode.
****************************************************************************************

  1. Detener mysql. Esto lo podemos realizar desde 'System Prefrences' > MySQL > 'Stop MySQL Server'
  2. Iniciar MySQL en modo seguro
    Abrir una ventana de terminal y ejecutar el siguiente comando:
    sudo /usr/local/mysql/bin/mysqld_safe --skip-grant-tables
  3. Abrir una nueva ventana terminal y ejecutar los siguientes comandos:
    sudo /usr/local/mysql/bin/mysql -u root
    UPDATE mysql.user SET authentication_string=PASSWORD('NewPassword') WHERE User='root';
    FLUSH PRIVILEGES;
    quit
  4. Detener mysql de nuevo y reiniciar en el modo normal.