简体   繁体   English

无法将Eclipse与SQL Server连接

[英]Not able to connect Eclipse with SQL Server

I am working on a java project with which I need to connect with database. 我正在一个Java项目,需要与数据库连接。 I am using Eclipse and SSMS (because I found it easy to use and manage). 我正在使用Eclipse和SSMS(因为我发现它易于使用和管理)。 I know how to connect eclipse with SSMS. 我知道如何将Eclipse与SSMS连接。 Issue is I don't know the password and username of my sql server. 问题是我不知道我的sql服务器的密码和用户名。 I installed SQL server and SSMS. 我安装了SQL Server和SSMS。 No where I was asked to set username and password. 否要求我设置用户名和密码。 I open my SSMS like this. 我这样打开我的SSMS。

开设SSMS

Now I don't know about any password and username and I am so confused that what to put in the user name and password field below. 现在我不知道任何密码和用户名,我很困惑,以至于在下面的用户名和密码字段中输入什么。

日食

These are basic and common newbie developer problems. 这些是新手开发人员的基本和常见问题。 Here is what I recommend after dealing with tons of SQL server problems while I was in college. 这是我上大学后处理大量SQL Server问题后的建议。

  1. OPEN your CMD and type in sqllocaldb i and check what servers are available in your computer, try connecting to any of those that are shown 打开您的CMD并输入sqllocaldb i,然后检查计算机中可用的服务器,尝试连接到显示的任何服务器
  2. Check your SQL Server Configuration Manager(is it working) 检查您的SQL Server配置管理器(是否正常工作)
  3. Did you initialize your SQL SERVER service? 您是否初始化了SQL SERVER服务? type services.msc and check if it available. 键入services.msc并检查是否可用。
  4. If not one of this works, try reinstalling and READ the requirements maybe your SQL installer did not include SQL service configuration, you might need to download full SQL that includes service configurations 如果不起作用,请尝试重新安装并阅读要求,也许您的SQL安装程序未包含SQL服务配置,您可能需要下载包含服务配置的完整SQL

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM