stone@backrush.com http://backrush.com
(34)[stone]/ > mysql -u root -p mysql
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2061 to server version: 3.23.47
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
>>> root ·Î mysql database·Î Á¢±Ù
mysql>
mysql>
mysql> show databases;
+----------+
| Database |
+----------+
| backrush |
| jakim |
| mageoli |
| mysql |
| test |
+----------+
5 rows in set (0.01 sec)
>> Á¸Àç database È®ÀÎ
mysql> create database DBDB;
Query OK, 1 row affected (0.05 sec)
>>»ç¿ëÀÚ database »ý¼º
mysql> insert into user values ('localhost','user',password('user123'),'N','N','N','N','N','N','N','N','N','N','N','N','N','N');
Query OK, 1 row affected (0.03 sec)
>> user Å×ÀÌºí¿¡ »ç¿ëÀÚ »ý¼º
mysql> insert into db values('localhost','DBDB','user','Y','Y','Y','Y','Y','Y
','Y','Y','Y','Y');
Query OK, 1 row affected (0.00 sec)
>> db Å×ÀÌºí¿¡ À¯Á®±ÇÇÑ Àû¿ë
mysql>
mysql> flush privileges;
Query OK, 0 rows affected (0.08 sec)
>> ÇöÀç ÀÛ¾÷ ¸®ÇÁ·¹½¬
mysql>
mysql>
|