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.
Related
screenshot
I am unable to connect to phpMyAdmin. This is my first time using it. These are all the errors I am getting, but I don't understand what any of them mean.
I installed XAMPP, ran Apache and MySQL, selected Admin, but then I get these errors in the screenshot attached.
I am completely new to this. I've been trying to follow a beginner guided project for MySQL on Udemy and the instructor is using phpMyAdmin. But, I couldn't find any instructions on how to install it and so I tried googling it and figuring it out myself. I looked at similar problems posted on here, but I honestly don't know where to start. Any suggestions? Or at least where to start?
I tried going into Config to check host, username, and password, but I am not sure what to look for and how to repair the problem.
I had MySQL Installer - Community and installed MySQL Workbench, MySQL Connector and MySQL Server prior to installing and using XAMPP. I was wondering if that was the problem so I uninstalled all of them, but I got the same errors anyways.
I've tried everything under the sun to fix this problem, nothing works!
I'm trying to connect to mysql using node.js.
I've tried both normal connections and pool connections, but I keep getting the following error:
"connect ECONNREFUSED"
I'm working on a Windows 7.
There are many similar questions to this on Stack Overflow, and everyone mentions the mysql configuration file (and commenting out "skip-networking"), however, I can't find where the file is (the mysql module was installed under node_modules).
I've tried looking for my.ini and my.cnf, there don't seem to be on my machine either.
Is there a way to try to log in to mysql via the command line?
It seems like there isn't since the command line doesn't recognize the command "mysql".
I'd post the code that I've been using but that wouldn't help, since I've been using dozens of different alterations, and all fail.
Thanks in advance, I appreciate the help!
Thanks to Салман, I realized that I need to install the actual MySQL server as well.
I installed MySQL server and everything worked fine in command line. I worked connecting MySQL to my ASP.NET application and there is no problem at all. But when I try to connect MySQL to PHP applications I am unable to connect. When I installed PHPMyAdmin I am getting error #2002 Connot log in to thie MySQL server
I browsed all the night for this error and none of Google's results helped me! :(
Anybody can you please tell me where the problem is at? I believe I must change my PHP.ini file settings in order to connect to MySQL. Anybody please help me.
There are a lot of things that can cause this type of issue. Did you make sure that you have added php-mysql drivers to your sever. Since you said your using ASP i will assume that you are using windows servers. Make sure that you also are allowing that user to connect via localhost or what ever ip the PHP is on.
In php there are to standered ways of connecting to a MySQL database.
php-mysql(is going to be depercated soon).
php-mysqli(OOP version of the php-mysql with lots of features).
With out one of these php will be unable to work with a MySQL database. I am not sure if phpmyadmin works with both drivers or just one of them It could be throwing a die("message") Just to let you know it is not working instead of throwing a more complex php error. You may want to see if you can incress error reporting.
You can check if your php installastion has the mysql driver by looking in your php.ini and also checking with.
phpinfo();
It is almost always about config. https://bbs.archlinux.org/viewtopic.php?id=90133
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.
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.