Raspberry Pi - MySQL

sudo apt-get install mysql-server mysql-client


ââââââââââââââââââââ⤠A configurar mysql-server-5.5 ââââââââââââââââââââââ
   â Embora não seja obrigatório, é fortemente recomendado que defina uma   â
   â palavra-passe para o utilizador administrativo "root" do MySQL.                        â
   â                                                                                                                                 â
   â Se este campo for deixado em branco, a palavra-passe não irá ser       â
   â alterada.                                                              â
   â                                                                        â
   â Nova palavra-passe para o utilizador "root" do MySQL:                  â
   â                                                                        â
   â ______________________________________________________________________ â
   â                                                                        â
   â                                                                    â
   â                                                                        â
   ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ


inserir a senha para o sql


mysql -u root -p


Inserir a senha


create database raspberrypidb;


Query OK, 1 row affected (0.00 sec)

use raspberrypidb;

Database changed



show tables;

Empty set (0.00 sec)


crtl+c para sair da consola do mysql


sudo service apache2 restart

service apache2 status


Comentários

Mensagens populares