Requesting help troubleshooting PowerShell/MySQL connectivity - mysql

I'm having trouble getting PowerShell to talk to MySQL. The frustrating part is that it had been working then suddenly stopped. I have searched around and unfortunately much of what I find is "Do these steps and it works" but there is something apparently getting in the way in my environment.
Here is information about what I'm running into:
* Windows 7
* PowerShell 2
* WAMP running MySQL 5 (MySQL is running and I can run queries with phpMyAdmin)
* Scripts that I used to be able to run now error out with "Cannot find type [MySql.Data.MySqlClient.MySqlConnection]"
* I was using SQLPSX (http://sqlpsx.codeplex.com/) to connect before and I've reinstalled that
* I have rebooted multiple times to try to clear things out
* I am running scripts as administrator
* I downloaded Connector/Net 6.3.6 again and reinstalled
I have no idea what happened to make this stop working. I have searched to try to get this resolved with no luck and I don't know what else to search for. If anyone has any ideas on what I can do or diagnostics I can run to troubleshoot the situation I would appreciate hearing them. Thanks.
UPDATE
Perplexingly enough I rebooted again today and PowerShell is now talking to MySQL again. :/ I'm still interested in hearing if anyone has any diagnostics that can be run to help pinpoint where the communication failure is happening.

sounds like you're missing the ado.net drivers for MySQL. Don't know why you'd be missing them if it was working before, but that's what the error sounds like.
Have you tried re-installing them?

I would say take a look in the Event Viewer and see if there are any errors starting near the time when you encountered the issue. Typically, if there is anything, they will give a decent clue as to what the issue is.
Take a look at patches to see what was installed and when. Its not uncommon for a patch to break something. Take a look in Add/Remove Programs at the installation dates and see if anything lines up.
You might try removing and then re-installing your entire WAMP stack.

Related

Unable to recover MySQL Database

So I was trying to get my web server setup on my pi by installing mariaDB and phpmyadmin. While doing so, I was going through and dropping tables, and found mysql. I accidently dropped it and lot 21 important files, and I can't seem to figure out how to recover this loss. Due to this, I'm unable to create any new users thanks to an error I created - 1064. Which puts me in a stall.
I've exhausted everything from uninstall to reinstall and nothing seems to give. Googling the issue hasn't been much of a resolve too.

Wordpress Install Guide Will not Start

I have installed Wordpress tons of times in the past and have never encountered an issue like this before. It usually is a pretty straight forward thing. In fact, I have 3 wordpress websites installed successfully on my computer from the same zip that I am using today. However, when doing the install this time, for some reason something is different. Wordpress outputs
Error establishing a database connection
But this makes no sense since all I am trying to do is start the installation process. OF course it is having difficulty establishing a database connection because I have not yet gone through the install process yet. I usually do not need to make a database connection at this point.
So my question is, What could be happening here? How could something which has always worked for me, suddenly stop working? IS there something I am missing? IF anyone can provide me with some information to point me in the right direction, It would be greatly appreciated. Thanks.
Your wordpress setup is unable to communicate the database.
The potential reason being incorrect database details in the wp-config.php file. That's the way to do.

phpMyAdmin error with XAMPP

For the first couple days of using XAMPP for Mac, I was successful in beginning to learn MySQL via phpMyAdmin. Then, it randomly stopped letting me log in, displaying the following error:
phpMyAdmin - Error
Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.
I've checked other forums, and they have not helped at all. I'm new to all of this, so I don't know much about anything regarding this, I've only used the program for about a day. PLEASE HELP!
Thanks in advance for any help!
First you should check if mysql is running. If it is, post your Serverlog, without it we cannot help you in any way.

Sphinx searchd issues when running on Windows Server

I am using sphinx to index my content. I used it in my development environment (xampp) and it worked fine. Now I took it to the server (same config file), and it is giving me trouble.
I have a VPS Windows 2008 server with Plesk panel. I am the administrator. the problem is that when i run the indexer tool, it tells me that it found 0 docs and indexing 0 docs. So it seems like it is working fine as far as accessing the database, but it just doesn't find any docs. Does anyone have any ideas, I spent a whole day playing with the configuration and database with no success.
Thanks.
Well maybe the database table that sphinx is trying to index is empty?
Either way would suggest adding debug command line switches when you run indexer. Eg --verbose, --print-queries etc. They will probably give you a better clue where the problem lies.

Webapp works on my windows dev box but not on server which is running Debian

I have a web application based on a mysql database.
It works fine locally but not on the unix machine.
I have tried looking at the Tomcat logs but they don't seem to have any errors.
How would you go about trying to debug this. I know it' possible that there are no answers. I am just hoping that someone had a similar problem, can post a fix that just might work for me.
I am asking for issues to consider rather than solutions. So the obvious ones are:
Have you pointed to the correct server
Did you use the correct username and password
Check the port
Check that mysql has been started
Or if you could tell me where I might see some error messages - does mysql have logs that would point out errors.
MySQL does have logs which can help find the solution, but I suspect the issue is in the code. Have you added logging and/or error catching in your code?
One thing to consider is that MySQL table name references are case sensitive on non-Windows platforms.