Код: Выделить всё
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| test |
+--------------------+
2 rows in set (0.00 sec)
mysql>
Код: Выделить всё
mail1# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 15
Server version: 5.0.88 FreeBSD port: mysql-server-5.0.88
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create databases SOS;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'databases SOS' at line 1
mysql>
Код: Выделить всё
mysqladmin -u root passwd