42 lines
750 B
Plaintext
42 lines
750 B
Plaintext
## MariaDB
|
|
|
|
* Instalar
|
|
|
|
```Instalar
|
|
sudo apt install mariadb-server
|
|
```
|
|
|
|
* Configurar
|
|
|
|
```Configurar
|
|
sudo mysql_secure_installation
|
|
|
|
Set root password? [Y/n] Y
|
|
Remove anonymous users? [Y/n] Y
|
|
Disallow root login remotely? [Y/n] Y
|
|
Remove test database and access to it? [Y/n] Y
|
|
Reload privilege tables now? [Y/n] Y
|
|
|
|
Cleaning up...
|
|
|
|
All done! If you've completed all of the above steps, your MariaDB
|
|
installation should now be secure.
|
|
|
|
Thanks for using MariaDB!
|
|
```
|
|
|
|
* Para poder acceder con contraseña
|
|
|
|
```
|
|
sudo mysql -u root -p
|
|
|
|
use mysql;
|
|
update user set plugin='mysql_native_password' where user='root';
|
|
flush privileges;
|
|
quit;
|
|
```
|
|
|
|
=> gemini://elmau.net/chuletas.gmi Regresar el índice
|
|
=> gemini://elmau.net Regresar el inicio
|
|
|