Can't Log into MySQL using phpMyAdmin - php

I installed IIS7, MySQL 5.5 and PHP 5.3 on my desktop running Windows 7 Ult 64-bit to develop a website and in order to test *.php webpages locally without having to upload them to my web host.
Everything has been running fine for several months until recently. When I try to log into MySQL database using phpmyadmin the webpage just clears the username and password and stays at the log in page. Even when I enter an incorrect username and password it doesn't say the log in credentials are wrong, it just stays at the log in page. Not even my root username and password will work.
I tried doing a manual password reset as explained on other forums but that didn't get me passed the log in page.
My database is only a test database so I even went as far as uninstalling and reinstalling MySQL. This installed the newer version of MySQL 5.6. That didn't work.
I tried different versions of phpmyadmin from 5.2 thru the newest version 5.7. I changed PHP in IIS7 to PHP 5.4 but that didn't get my log in to work either.
All webpages in *.php open fine on the localhost machine. I can view them fine. I run home server and when I access the website from a remote computer I can navigate the entire website. When I go to http://[remotecomputername]/phpmyadmin and try to log in it just goes to a blank page and doesn't show me the phpmyadmin gui.
Not sure why the log in on the localhost stop working but any help to resolve this would be appreciated.

go to control panel > administrative tool> service >
then you will find a list of item , navigate to MYSQL
right click on it > properties > in general tab > start type ( make it automatic )
then apply / save
and finally restart all services in wamp

Related

Issue with XAMPP and MySql

I am facing a problem pretty common, I have installed MySql Server because in the past I developed an CRUD app by using Java Swing and Maven, and now I am trying to create same thing, a CRUD app only this time with PHP.
I am following a tutorial from Udemy and this guy is using XAMPP to launch both an Apache Server and a MySQL. But somehow it's interfering with the one already installed on my laptop and cannot make the connection with XAMPP.
I opened my.ini and where says password i put my own from MySQL Workbench, and I see it's using the same port 3306 but still cannot work and I dont know why.
Is there any solution to modify my.ini and establish the connection without uninstalling the MySql Server installed before, because if I do that I ruin the other Java app using it.
Could you please provide the error logs? So the problem can be identified properly. By default, you can get the logs file for Apache in
\xampp\apache\logs\error.log
And for PHP here \xampp\php\logs

Login issue in Mysql through Phpmyadmin

I am unable to login to MySQL. I am using Phpmyadmin interface. Please note that it is not #1045 error which has plenty of solutions on the internet including this website. When I try to login it simply shows this error
Cannot log in to the MySQL server
and nothing else no error number or anything else and I'm guessing that my MySQL and PHP server are not starting at all because I also cannot run sites on localhost. I am using WAMP on Windows machine. Please tell me how to solve this problem and I don't want to uninstall and reinstall WAMP because I have not taken backup of all the databases on MySQL and if I uninstall it will delete all the databases. Please help.
Reset your password.
Left click WAMP in your system tray, go to MySQL > MySQL console.
Type the following: SET PASSWORD = PASSWORD('new_password');
For no password: SET PASSWORD = PASSWORD('');
more information here
https://dev.mysql.com/doc/refman/5.6/en/alter-user.html

IIS php Mysql - databse insert value work on XAMPP & WAMP but does not work on IIS

I have my Windows 7 desktop computer, and created php application which uses mysql database. I tried to run that after creating environment in my desktop with the help of XAMPP. It worked perfectly without any problem. I tested that same application in WAMP and it worked perfectly there also.
However, at the time of deployment to the Windows R2 2008 server, I used IIS to get the application run. Following is the description of firmware installed:
Installed mysql and mysql workbench
Installed IIS using Control panel-> add remove program-> turn on windows feature on off -> iis
Installed php 5.3 version using Microsoft Web platform installer (Web PI).
Activated FastCGI with the help of following link: on-iis#InstallPHP
Updated necessary changed in php.ini file. Activated port 3306 for mysql and port 80 for localhost.
Checked localhost and phpinfo.php file and both work fine.
Deployed application, and tried to run using localhost and 127.0.0.1 as well as from local IP address and it executed the first login page perfectly.
Everything works perfectly. However, I open the entry form in the application, and tried to fill up the form, and when clicked on submit, the data are not getting saved in database.
As a test, I checked by importing the old database and while searching the data in other application page, I am able to see the data coming from the database. But problem only happens when I do any insert any entry or try to submit data, I can't get the data saved in database.
This same thing works perfectly in WAMP and XAMPP however, does not work on IIS environment.
The MySQL user being used to interact with the database may not have the INSERT Grant for that database. WAMP and XAMPP are both using a mysql user with defined privileges. Have you created the same user with the same privileges on the newly created MySQL instance on your Windows 2008 server? You may consider reading over the MySQL Grant syntax. Utilizing mysql_error() for error trapping could prove useful for troubleshooting as well.

phpMyAdmin not logging in locally

I have PHP 5.4 set up, and now MySQL developer 5.5 both installed on my local machine and both working fine separately.
When I go to phpMyAdmin (localhost/phpmyadmin) I receive no errors and the login screen appears perfectly. Only problem I have is that I can't log in. It just comes back to the login screen when I submit login.
I figure it has something to do with the database not running on localhost or with PHP not connecting correctly to the database.
Is there anything I should look at to confirm connection between the two etc?
Take note: I have spent a few hours already Google'ing for solutions.
The problem was solved by removing PHP and uninstalling MySQL and finally installing WAMP server.

Wamp Server Error #1045

I would like to know about the Wamp server #1045 error on my machine. few days back i had installed my Wamp server and it was working fine like loading PhpMyAdmin, creation of database, localhost etc. i even performed some basic practices in Php.
Later on i learnt to change the password of MySQL via MySQL CMD and i performed the same. After that when i tried to load the PhpMyAdmin again, it showed me error #1045 access denied.
I tried to perform many thing but no respite from the pains. I tried to perform some fixes in phpmyadmin/config.inc, some setting in ctrl panl- Admin tools-Services-mySql (Start and stop)..
May i know what has happened to this and how to solve this problem. Thanks for help in advance.
You are basically giving yourself the answer inside your question.
You changed the mysql password. With which you most probably mean that you changed the mysql root user password. Since phpmyadmin is a mysql GUI (graphic user interface) it is only understandable that phpmyadmin can not function anymore because you haven't told it the new password you set. Just login to phpmyadmin by using 'root' as user and the new password you set. Works?

Categories