I can sign into remote phpmyadmin with my credentials, but when I try and connect to the db in phpstorm, I get rejected password - mysql

I can connect fine in phpymyadmin in the remote database server fine. I want to have access to the db in phpstorm to make coding a bit easier but I keep getting rejected password. Im using the exact same credentials I am ussing to sign into phpymadmin. Could this be the server configuration? I know nothing about that. I wont be able to speak to the server admins until tomorrow so I won't be able to ask them about it. Would be nice to have it working now.
Furthermore, the code on the webserver does not seem to talk to the database. Again, I am using the same credentials to sign in with the php code.
It was working flawlessly on localhost, but now since I've moved it over to a remote web server and database, nothing seems to be working correctly.

Related

phpmyadmin login returns to login screen

I've upgraded my server from Ubuntu 16.04 to 18.04 intending to go on to 20.04, but the original install was i386 and support for that has been discontinued.
Now, when I try to use phpmyadmin, I get the login screen. When I enter a bad password, I get the error: mysql access denied, but when I enter the right password I just get the login screen again.
Searching for this problem only gets me solutions of the form "you've forgotten your password, how to reset your password". I'm pretty sure I got the password correct as the response is different between getting it right and getting it wrong.
Phpmyadmin swiched to not allowing http access, requiring to login using https. Somehow the "error message" (i.e. none) is not optimal to getting the user to understand the issue.
So: phpmyadmin (in some versions?) does this when it wants you to login in using https and not http.
Tip for phpmyadmin developers: Tell this to the user while presenting the login screen: This phpmyadmin is configured not to allow http logins as they are unsafe. Now I've sent my password across the network unsecured several times while trying and trying again, not understanding what the problem was.
I know I'm going to run into this again in a few years. Hopefully by then Google knows to find this.

How to access website showing error "mysql server gone away"?

I am trying to login to a website that constantly showing error mysql server gone away. is there a way to access the website? any hack? any tool?
If a website is giving you a MySQL error, that means that the server can't talk to the database. If you have access to the server, you can try restarting MySQL or just rebooting the server!
If you do not have access to the server, try contacting the people who run the website and letting them know that you can't access it.

Let's encrypt giving error "Your connection is not private"

I am using let's encrypt SSL from past 4 months on my site which is hosted on nginx web server and it was working properly using HTTPS but today it suddenly starts giving an error that "Your connection is not private".I didn't change anything on the web server.only one thing I did that I connected my site database remotely on my PC using Mysql workbench.When I tried to connect my server database locally on my PC first time it asked something that connection was unauthenticated without complete reading by mistakenly I clicked on ok.Is this action affected my site privacy?How should i solved this issue

Intermittent MySQL Connection Error in Azure Website

I'm getting the following error intermittently when making a call from my ASP.Net MVC web application which is using Dapper to query MySQL.
Unable to connect to any of the specified MySQL hosts.
The exception only occurs when my web app is published to Azure. It has worked 100% of the time when I run the code locally. I've deployed the code to a second azure website, and also get the exception there, again intermittently.
The MySQL database is running on an Azure VM (Ubuntu). This server also has some R scripts that access the database, which are being run at a set interval. I've had no connectivity issue with these either. It is just the .Net code that's struggling.
I've scoured the web, but don't feel like I've turned up anything of value. Most of the links have pointed to a connection string problem, but since it works intermittently that doesn't seem to fit my problem. Some links have referenced DNS issues, but I'm getting the same problem when I use the IP Address instead of the machine name for the DNS server.
I'm sure I need to track down more information, but I'm not sure where it would be. This is my first foray into using a MySQL db in this fashion, and I'm not familiar with config options or log files on that side of things. I feel similarly about Azure websites with database interactions too.
What can I try next?
Just to drive home the point about this error being intermittent, here's a screenshot from the Runscope job that's hitting the page (thus triggering the MySQL query) every 5 minutes:
I was able to fix (or perhaps "circumvent") this problem by adding the --skip-host-cache flag to our mysql configuration file. I still don't fully understand what the root of the problem is, but we haven't had any issues with MySQL connectivity from the Azure website since adding that.

How to access phpMyAdmin on remote server

For my websites I use Dreamhost. Dreamhost requires you to create a hostname (ex: mysql.mclindigital.com) that the database will reside on. For me it's simple, if I want to access phpMyAdmin, I simply navigate to mysql.mclindigital.com, and it enters into phpMyAdmin automatically.
Apparently Dreamhost is in the minority using this method, because most people seem to use "localhost". So, how do I access phpMyAdmin for these websites? Will I need to get their Web Panel login info to browse around for this info?
As an example, I had a past client and I had to go here: http://216.120.237.104:2082/3rdparty/phpMyAdmin/index.php to get into their phpMyAdmin. I never really understood what I was doing, but it just worked. Now I am in the same situation, but this time the client isn't as tech-savvy and is unable to give me the URL I need to go to.
Also, I should point out I am not 100% certain that they have phpMyAdmin installed. I do know they have a database however, because they are running a Wordpress Blog.
There is nothing magic or special about phpMyAdmin. It is just
a bunch of php scripts.
Some webhosts(Such as dreamhost) may install it as standard
similary to formmail and a bunch of other tools they may install.
Your problem is most likely that you client don't have
phpMyAdmin installed, and the easy solution(If you have ftp access)
is to go to http://www.phpmyadmin.net/home_page/index.php download
phpMyAdmin, configure it and then just upload it to their ftp server
your self. Then you can acces it similary to any other php script.