mysql 问题收录

环境

mysql 8
mac

问题

输入mysql命令show databases;出现

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’ at line 1

解决办法:在没有进入database之前,mysql8只能识别大写字母的命令,该用SHOW databases;
createpool详解:
https://blog.pkcms.cn/archives/1511

TypeError: app.use() requires a middleware function

问题:运行node app.js文件,启动服务器时出现错误
解决办法:检查一下是否在路由文件中将router变量导出了
在这里插入图片描述
参考链接:TypeError: app.use() 需要中间件函数

命令

删除数据库:drop database <数据库名>;

猜你喜欢

转载自blog.csdn.net/weixin_46353030/article/details/129556395