gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-29 11:33:53 26 4
gpt4 key购买 nike

我是数据库和 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
->

有什么问题吗?

最佳答案

我相信您可能只是缺少分号

create database test;

关于mysql - 无法在终端中运行命令?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36940607/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com