HowTo/MariaDB: mudanças entre as edições

De WIKIPORTO
(Criou página com '==Instalação== <syntaxhighlight lang="bash" style="border: 1px solid blue;"> sudo apt install mariadb-server </syntaxhighlight> ==Configuração== <syntaxhighlight lang="bash" style="border: 1px solid blue;"> sudo mysql_secure_installation </syntaxhighlight> * Acessar: <syntaxhighlight lang="bash" style="border: 1px solid blue;"> sudo mysql </syntaxhighlight> * Criar o: '''useradmin''' <syntaxhighlight lang="bash" style="border: 1px solid blue;"> CREATE USER 'useradmin...')
 
Sem resumo de edição
Linha 22: Linha 22:
sudo apt install phpmyadmin
sudo apt install phpmyadmin
</syntaxhighlight>
</syntaxhighlight>
==Fontes==
* [https://mariadb.com/kb/pt-br/mariadb-brazilian-portuguese/ MariaDB - Brazilian Portuguese]
** [https://mariadb.com/docs/skysql-dbaas/ref/xpand/privileges/SUPER/ SUPER Privilege]
** [https://cursos.alura.com.br/forum/topico-por-que-usar-with-grant-option-131963 Por que usar WITH GRANT OPTION?]

Edição das 00h09min de 8 de junho de 2024

Instalação

sudo apt install mariadb-server

Configuração

sudo mysql_secure_installation
  • Acessar:
sudo mysql
  • Criar o: useradmin
CREATE USER 'useradmin'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'useradmin'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;
  • Remover as linhas da criação do useradmin em: /root/.mysql_history
  • Instalar o phpMyAdmin:
sudo apt install phpmyadmin

Fontes