gpt4 book ai didi

mysql - SQL数据库创建错误

转载 作者:行者123 更新时间:2023-11-29 18:09:13 25 4
gpt4 key购买 nike

我正在使用-uroot用户登录,然后传递命令

mysql -u abc -p -e "创建数据库 drupal 字符集 utf8 COLLATE utf8_general_ci";

但我收到错误

"ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'mysql -u abc -p -e "CREATE DATABASE drupal CHARACTER SET utf8 COLLATE utf8_gener' at line 1".

无法弄清楚。

最佳答案

首先连接mysql

mysql -u abc -p

然后运行命令

创建数据库 drupal 字符集 utf8 整理 utf8_general_ci

关于mysql - SQL数据库创建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47538523/

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