mysql - 无法在终端中运行命令?

时间:2016-04-29 14:12:48

标签: mysql sql macos

我是数据库和mysql的新手。

运行sudo mysql -u root -p并输入密码后,我成功进入了mysql。 (我在Mac OS X 10.10下。)

但是,当我尝试创建数据库时,出现了问题。

$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 16
Server version: 5.6.23 MySQL Community Server (GPL)

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database test
    -> exit
    ->

有什么问题?

1 个答案:

答案 0 :(得分:1)

我相信你可能只是错过了分号

$cs = Get-AzureService -ServiceName "totestubuntu1"
New-AzureReservedIP -ReservedIPName "ipname2" `
    -Location "East US" -ServiceName $cs.ServiceName