MySQL报错当出现Error Code: 1046. No database selected Select the default DB to be used by double-clicking
最新推荐文章于 2023-10-15 13:18:44 发布
能变瘦的莫巧丽
最新推荐文章于 2023-10-15 13:18:44 发布
阅读量8.8k
MySQL报错当出现Error Code: 1046. No database selected Select the default DB to be used by double-clicking
当MySQL’出现Error Code: 1046. No database selected Select the default DB to be used by double-clicking its name in the SCHEMAS list in the sidebar.(错误代码:1046。未选中数据库通过在侧边栏的SCHEMAS列表中双击其名称选择要使用的默认DB)错误时主要的原因是没有指定数据库,对于我来说,只需要MySQL语句中加上use 数据库名即可或者选中左侧列表中的数据库名即
Navicat导入sql
报错
[Err]
1046
– No
database
selected
今天系统重装了,就很完蛋。所有东西都重新下载安装。向Navicat导入sql的时候导入失败:
报错
[Err]
1046
– No
database
selected
。我很疑惑地又导了几次。当然又全都失败.
错误造成原因:
直接在连接位置上右击选择了运行sql文件
解决方法:
第一步:连接位置右键新建一个
数据库
,名字跟要导入的
数据库
名字相同
第二步:在
数据库
位置右键运行sql文件
第三步:点开始就可以运行成功了!显示Successsfully
注意:导入成功之后刷新可能
数据库
在开始安装过程之前,请确保已安装了NodeJS和Npm。
要下载NodeJS和Npm,。 或要通过程序包管理器安装Node.js和Npm,
Npm与Node.js一起分发,这意味着当您下载Node.js时,会自动在计算机上安装npm。
设置过程(手动环境设置)
- Fork the repository by
click
ing
on the Fork button located below the navigation bar on the right side of the page.
- Clone the forked repository to your computer ensure to
Error
Code
:
1046
. No
database
selected
Select
the
default
DB
to be u
sed
by
double
-
click
ing
its name
Error
Code
:
1046
. No
database
selected
Select
the
default
DB
to be u
sed
by
double
click
ing
its name in the SCHEMAS list in the sidebar.
错误代码:
1046
。未选择
数据库
通过双击侧栏中“架构”列表中的
数据库
名称来选择要使用的默认
数据库
。
解决方法:选中某个
数据库
就行
再次运行即可
①:这种情况一般是因为你在
数据库
中没有这个
数据库
,你新建一个你要导入的
数据库
名字的
数据库
,然后选中该
数据库
,再进行导入基本上就可以了
②:初学者在建立表时容易遇到这样的
报错
:
Error
Code
:
1046
. No
database
selected
Select
the
default
DB
to be u
sed
by
double
-
click
ing
its name in the SCHEMAS list in the sidebar.
其实就是未指定
数据库
,
在
MySql
中建立
数据库
后create
MySQL
workbench 导入表格,查询时
Error
Code
:
1046
. No
database
selected
Select
the
default
DB
to be u
sed
by
double
-
click
ing
its name in the SCHEMAS list in the sidebar.
输入use +要用的schemas名
使用create-react-app(CRA)创建的项目。 我已经列出了这个应用程序中的所有世界大学。 默认情况下,选择“挪威”国家来获取初始数据。 用户可以在搜索框中输入国家/地区名称来搜索其他大学。
我已经使用简单的网格系统来展示此数据。 Page具有响应式设计,并且在桌面和移动视图上均兼容。
该项目使用的世界大学API
我已经尝试构建自己的分页代码,但是我没有成功。
#####
Create React App入门
该项目是通过引导的。
在项目目录中,可以运行:
npm start
在开发模式下运行应用程序。 打开在浏览器中查看它。
如果您进行编辑,则页面将重新加载。 您还将在控制台中看到任何棉绒错误。
npm test
在交互式监视模式下启动测试运行器。 有关更多信息,请参见关于的部分。
npm run build
构建生产到应用程序bui
细致分析错误
ERROR
1044 (42000):Access denied for user
ERROR
1045 (28000): Access denied for user *** (us
ing
password: YES
ERROR
1054 (42S22): Unknown column *** in 'where clause'
ERROR
1064 (42000): You have an
error
in your SQL syntax;
ERROR
1072 (42000): Key column '***' doesn't exist in table
ERROR
1142 (42000): CREATE command denie
This
error
usually occurs when the required dependency for Spr
ing
J
DB
C is not present in the project. To resolve this
error
, you can follow the steps below:
1. Check if you have added the follow
ing
dependency to your pom.xml file:
<dependency>
<groupId>org.spr
ing
framework</groupId>
<artifactId>spr
ing
-j
db
c</artifactId>
<version>5.0.0.RELEASE</version>
</dependency>
2. If the dependency is already added, try updat
ing
the version to the latest stable release by chang
ing
the version number to the latest stable release in the above
code
block.
3. If you are us
ing
an IDE like Eclipse or Intellij, try updat
ing
the Maven project by right-
click
ing
on the project and
select
ing
Maven > Update Project.
4. If the issue still persists, try delet
ing
the local Maven repository located in your user directory (e.g. C:\Users\username\.m2\repository) and then re-build
ing
the project.
If none of the above solutions work, you can try search
ing
for the Spr
ing
J
DB
C dependency in the Maven Central Repository and manually download
ing
the jar file and add
ing
it to your project's classpath.
MySQL报错当出现Error Code: 1046. No database selected Select the default DB to be used by double-clicking