13 May 2009 - 16:55Jak vytvorit uzivatele a db v mysql
bluedot.cz~# mysql -u admin -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 795395
Server version: 5.0.32-Debian_7etch6-log Debian etch distribution
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.
mysql> create database db;
Query OK, 1 row affected (0.00 sec)
mysql> grant all privileges on db.* to db@localhost identified by ’somepassword’;
Query OK, 0 rows affected (0.11 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.08 sec)
mysql>
No Comments | Tags: Databáze