pre-login handshake SQL server 2014 - sql-server-2014

I am getting the following error.
A connection was successfully established with the server, but then an
error occurred during the pre-login handshake. (provider: TCP Provider
The specified network name is no longer available) ((Microsoft SQL
Server, Error: 64).

Related

XAMPP phpmyadmin error list Cannot connect: invalid settings, Packets out of order, mysqli::real_connect(): Error while reading greeting packet etc

I got following errors when I start the server. I did not changed any password or username before stop the xampp and shutdown the computer.
Cannot connect: invalid settings.
Packets out of order. Expected 0 received 1. Packet size=68
mysqli::real_connect(): Error while reading greeting packet. PID=5140
mysqli::real_connect(): (HY000/2006): MySQL server has gone away
Connection for controluser as defined in your configuration failed.
Packets out of order. Expected 0 received 1. Packet size=68
mysqli::real_connect(): Error while reading greeting packet. PID=5140
mysqli::real_connect(): (HY000/2006): MySQL server has gone away
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
Update:
when I changed the $cfg['Servers'][$i]['AllowNoPassword'] = true; to false; now only shows following error
phpMyAdmin tried to connect to the MySQL server,
and the server rejected the connection.
You should check the host, username and password in your configuration and make sure that
they correspond to the information given by the administrator of the MySQL server.

Can't connect or even login to phpMyAdmin on Xamp

I changed my port from 3306 to 3310 due to it not being able to start mySQL in the xampp control panel.
That was the only change I made my from the default windows 10 download.
When I go to https://localhost/phpmyadmin/ I get these errors and cant log see the log in form.
Error
MySQL said: Documentation
Cannot connect: invalid settings.
mysqli_real_connect(): The server requested authentication method unknown to the client [caching_sha2_password]
mysqli_real_connect(): (HY000/2054): The server requested authentication method unknown to the client
Connection for controluser as defined in your configuration failed.
mysqli_real_connect(): The server requested authentication method unknown to the client [caching_sha2_password]
mysqli_real_connect(): (HY000/2054): The server requested authentication method unknown to the client
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
Retry to connect
Any help would be greatly appreciated

Conn to Google Cloud SQL instance from CORE w/ proxy: A network-related or instance-specific error occurred. I CAN connect via mysql cmd

I begin by starting goole sql proxy by running following command:
./cloud_sql_proxy -instances=dauntless-gate-xxxxxx:us-central1:redacted-dev=tcp:3306
I SUCCESSFULLY connect from to it from running the following commands:
mysql --host=127.0.0.1 --user=sa --password=<redacted>
or
mysql --host=127.0.0.1 --user=sa --password=<redacted>
I attempt and fail to connect using ASP.net Core 2 w/ the follwing:
startup.cs
public void ConfigureServices(IServiceCollection services)
{
services.AddDbContext<UserContext>(opt =>
opt.UseSqlServer("Server=127.0.0.1:3306; User Id=sa;Password=<redacted>;"));
...
}
Error:
SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 35 - An internal exception was caught)
I also try with the following and get slightly different error:
startup.cs
public void ConfigureServices(IServiceCollection services)
{
services.AddDbContext<UserContext>(opt =>
opt.UseSqlServer("Server=127.0.0.1; User Id=sa;Password=<redacted>;"));
...
}
An unhandled exception occurred while processing the request.
SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server)
An unhandled exception occurred while processing the request.
ExtendedSocketException: No such device or address
System.Net.Dns.InternalGetHostByName(string hostName)
"SQL Server" is the name for Microsoft's SQL server product, which is not the same as MySQL, which running on your instance. You will need to use the MySQL Connector/NET to connect. Check out this page for more specific guidance for Entity Framework.

GlassFish4.1 and mysql

I make a project of web in JSP for displaying my mysql database in web. I used JSF, GlassFish server 4.1 and mysql-5.6.24 for my project. mysql is on port 3306 and GlassFish receives HTTP request on port 8080 but my project displays this error message to me in a web browser.
"Error in allocating a connection. Cause: Connection could not be allocated because: java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect."
1527 port is for Derby and i am using mysql which is on port 3306 why it shows me this port error with which mysql didn't any concern 1527 is for Derby.

SQL Server 2008 connecting error

After installation of SQL Server 2008, I open SQL Server 2008 and in Connect to Server window, I set following information :
Server type: Database Engine
Server name: MATRIX-PC\SQLEXPRESS
Authentication: Windows Authentication
User name: MATRIX-PC\MATRIX
Password:
Note: my PC name is MATRIX
I also in above information Server name changed to .\sqlexpress, but it returns an error when click on connect button:
Cannot connect to MATRIX-PC\SQLEXPRESS
Additional Information
A network-related or instance-specific error occured while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provide: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)