Encounter error while trying to login Azure virtual machine through mysql - mysql

I created a VM in azure. Deployed my asp .net mvc application. Installed MySQL and restored my database. now when I login in my application I get the following error
•Invalid DB Connection. Please Check - the errorAuthentication to host '' for user '' using method 'mysql_native_password' failed with message: Access denied for user ''#'fe80::5104:58d5:a59f:8159%11' (using password: NO)
I supplied the correct user id and password in my application. But still I don't know why it is giving error. I also set Limits to host matching setting to %. I checked what this fe80::5104:58d5:a59f:8159%11 and it looks like its link local ipv6 address. Any help would be appreciated?

Related

Can't connect to to siteground database with SQL

I'm trying to connect to my siteground native database, but I'm getting this error:
ER_ACCESS_DENIED_ERROR: Access denied for user
'root'#'cpc1234569-man6-2-1-cust215.7-1.cable.virginm.net' (using
password: YES)
when I try to make a query. I'm connecting via mySQL's VSCode plugin.
I've entered my public IP address in to Siteground's remote access host section, but I'm still being denied permission. Any ideas?
I solved it by creating a new database access account within the siteground tools page. There must have been something wrong with the credentials of the previous account passed on to me by my colleague. It worked smoothly from a new account.

CodeIgniter 3 Database connects to own IP

I am trying to connect to an external database using the CodeIgniter 3 framework. When I enter the database details in Codeigniter's database settings I get the following message:
Message: mysqli::real_connect(): (HY000/1045): Access denied for user '{username}'#'{HomeIP}' (using password: YES).
While I have set in the database settings that it should connect to an external database, it does not. It then tries to connect to the ip adress of where I live
I have already tried the following things:
Disable firewall
Connect via hotspot (then it tries to connect to ip of service provider)
When I use my phone to go to the website it does succeed in connecting, it is then most likely in the settings of my Macbook Pro (Big Sur)
Does anyone have an idea what it could be?
Enable remote database access on the database source.
That's why you're getting that message.

My asp.net website is trying to connect mysql db though I am not using mysql

My ASP.net web form website is using MSSQL server and site web.cofig has sql server connection string. But I am surprised that why it is trying to connect my sql db though there is no connection string for my sql.
I dont know why.. That's my problem too
Exception message :
Authentication to host '' for user '' using method 'mysql_native_password' failed with message: Access denied for user ''#'xxx' (using password: NO)\r\n at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.AuthenticationFailed(Exception ex)\r\n at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.ReadPacket()\r\n at MySql.Data.MySqlClient.Authentication.MySqlAuthenticationPlugin.Authenticate(Boolean reset)\r\n at MySql.Data.MySqlClient.NativeDriver.Open()\r\n at MySql.Data.MySqlClient.Driver.Open()\r\n at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)\r\n at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()\r\n at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()\r\n at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()\r\n at MySql.Data.MySqlClient.MySqlPool.GetConnection()\r\n at MySql.Data.MySqlClient.MySqlConnection.Open()\r\n at MySql.Web.Common.SchemaManager.GetSchemaVersion(String connectionString)\r\n at MySql.Web.Common.SchemaManager.CheckSchema(String connectionString, NameValueCollection config)\r\n at System.Web.Configuration.ProvidersHelper.InstantiateProvider(ProviderSettings providerSettings, Type providerType)
I suspect this happened after I installed mysql-community-5.7.20.0
Update : I uninstalled everything (mysql) just now and it's normal again

MySQL Server Connection in PhpStorm 2016

This seems like the most annoying thing in the world, but for some odd reason, I'm not able to connect my MySQL DB in PhpStorm (as a data source). It constantly tells me that the user/password combo is incorrect. Here's the complete error message:
The specified user/password combination is rejected: [28000][1045] Access denied for user 'my_username'#'localhost' (using password: YES).
I know for a fact that my credentials are correct. I've checked and double checked. Even created a few new users.
I know that the credentials are correct because the application I'm writing is successfully connected to this DB.
And, as an FYI, the DB I'm trying to connect to is hosted on GoDaddy (shared CPanel Linux hosting).
PS: I've also tried using my website's IP as the host to no avail.

mysql on ec2 amazon instance attempting to login with incorrect user

I've set up a very basic LAMP setup on an ec2 server, all good it seems to work.
However i've seen for some queries a failure to connect to the mysql server with the following error:
[07-Jul-2013 20:15:41 Australia/Sydney] PHP Warning: mysql_real_escape_string(): Access denied for user 'ec2-user'#'localhost' (using password: NO) in /var/www/html/mycobber/class/sql/SqlQuery.class.php on line 40
[07-Jul-2013 20:15:41 Australia/Sydney] PHP Warning: mysql_real_escape_string(): A link to the server could not be established in /var/www/html/xxx/xxxx/sql/SqlQuery.class.php on line 40
the thing i dont' understand is the fact that in no location in my mysql connection configuration does it specify the user ec2-user. this is the default user when I log onto the unix server. I've set up a separate account to actually run all my processes, i dont' even use the es2-user.
I've looked online and can't see anything to explain this. does anyone have an idea what's going on here. it's not all the time
Your can't call mysql_real_escape_string without having opened a connection with mysql_connect first.
Quoting from the documentation:
A MySQL connection is required before using mysql_real_escape_string() otherwise an error of level E_WARNING is generated, and FALSE is returned.
The error message refers to your default username # localhost because you haven't opened a connection with specific credentials yet - it doesn't know what account details to use.