2 de agosto de 2011

Crear usuario MySQL

Acceder a mysql con usuario root.

mysql> CREATE USER 'user'@'localhost' IDENTIFIED BY 'user_pass';
Query OK, 0 rows affected (0,00 sec)

mysql> GRANT ALL ON *.* TO 'user'@'localhost';
Query OK, 0 rows affected (0,00 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0,00 sec)

Usuario con password, con privilegios completos, solo puede acceder desde localhost.

1 comentario:

  1. Hey! This is κіnԁ οf οff toрic but I need some help fгom an established blog.
    Is it νery ԁіfficult to ѕеt up your own blоg?
    I'm not very techincal but I can figure things out pretty fast. I'm thinking abοut creating my oωn but I'm not sure where to begin. Do you have any ideas or suggestions? Many thanks

    Here is my website ... pharmacy technician job description

    ResponderEliminar