www.samueldiasneto.com: Tutorial MySQL

<<< Voltar Avançar >>>

3. Entrando no MySQL

O comando usado para entrar no MySQL é:

mysql -h MÁQUINA -u USUÁRIO -p

onde:

Exemplo:

aranha:/home/samuel# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 6 to server version: 4.1.11-Debian_4-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

Observe na mensagem exibida que os comandos digitados no prompt do MySQL devem terminar com ; (ponto-e-vírgula) ou \g .

<<< Voltar Avançar >>>