问题
I'm using windows 10 & am having all kinds of trouble with Xampp/MySql/PhpMyAdmin, problems which I did not get on Windows 7.
So basically I made a Laravel website at work where I still use windows 7, so the password for the MySQL database works fine there.
However when I try to login on my website at home (windows 10) I get the 'using password NO' error... So to rectify this error I used the Xampp shell and executed this command: mysqladmin --user=root password "newpassword"
which then allowed me to use any database dependent functions on my website that previously did not work, but now when I try to get onto localhost/phpmyadmin I am getting the error 'Cannot connect - invalid settings'.
So in summary it's either I can
A. get on phpmyadmin fine but none of the database dependent features of my Laravel site work.
B. The database features all work but I can't access phpmyadmin anymore.
Can anyone advise on how I can get both things to work?!
回答1:
So you're using two machines, correct?
Then it will be your configuration that's different from the other.
Reinstall it on the Windows 10 machine and replicate what you've done on the other machine (copy the xampp files over like the php.ini and any other configuration file).
来源:https://stackoverflow.com/questions/32928818/cannot-connect-invalid-settings