USUÁRIO:      SENHA:        SALVAR LOGIN ?    Adicione o VBWEB na sua lista de favoritos   Fale conosco 

 

  Fórum

  Visual Basic
Voltar
Autor Assunto:  Alterar a senha do MYSQL
¨Hennyere¨
Pontos: 2843
SALVADOR
BA - BRASIL
Postada em 10/03/2006 18:45 hs         
Olá,
Alguem sabe como criar ou alterar o usuário e a senha do Mysql com um arquivo BAT ou pelo VB?
 
Gostaria de saber também, como criar um serviço iniciar ou parar com um arquivo Bat ou pelo VB.
 
TÓPICO EDITADO
   
¨Hennyere¨
Pontos: 2843
SALVADOR
BA - BRASIL
Postada em 13/03/2006 09:02 hs         
...
     
kerplunk
Pontos: 2843 Pontos: 2843 Pontos: 2843
SÃO PAULO
SP - BRASIL
Postada em 14/03/2006 07:35 hs         
CREATE USER user [IDENTIFIED BY [PASSWORD] 'password']    [, user [IDENTIFIED BY [PASSWORD] 'password']] ...

The CREATE USER statement creates new MySQL accounts. To use it, you must have the global CREATE USER privilege or the INSERT privilege for the mysql database. For each account, CREATE USER creates a new record in the mysql.user table that has no privileges. An error occurs if the account already exists.

The account can be given a password with the optional IDENTIFIED BY clause. The user value and the password are given the same way as for the GRANT statement. In particular, to specify the password in plain text, omit the PASSWORD keyword. To specify the password as the hashed value as returned by the PASSWORD() function, include the keyword PASSWORD. See Section 13.5.1.3, “GRANT and REVOKE Syntax”.

     
¨Hennyere¨
Pontos: 2843
SALVADOR
BA - BRASIL
Postada em 14/03/2006 11:57 hs         
criar usuário
-------------
create user usuario identified by 'senha';
definir privilégios
-------------------
grant all privileges on nomedobanco.* to 'usuario' identified by 'senha' with grand option;
 
 
Como fazer isto funcionar em um arquivo BAT?
     
Página(s): 1/1    

CyberWEB Network Ltda.    © Copyright 2000-2026   -   Todos os direitos reservados.
Powered by HostingZone - A melhor hospedagem para seu site
Topo da página