How can i know my php username and password?
I have intalled Show in
SonalPM 1,3178 silver badges17 bronze badges asked Oct 14, 2014 at 7:12
4
answered Oct 14, 2014 at 8:01
Hara PrasadHara Prasad 6646 silver badges13 bronze badges Try changing the following lines with new values
Updated due to the absence of the above lines in the config file Stop the MySQL server
Start mysqld
Login to MySQL as root
Change MYSECRET with your new root password
Kill mysqld
Start mysql
Login to phpmyadmin as root with your new password answered Oct 14, 2014 at 7:38
geoandrigeoandri 2,3302 gold badges14 silver badges28 bronze badges 4 Try opening config-db.php, it's inside /etc/phpmyadmin. In my case, the user was phpmyadmin, and my password was correct. Maybe your problem is that you're using the usual 'root' username, and your password could be correct. answered Dec 23, 2017 at 16:34
1
mysqladmin.exe -u root password NewPassword where 'NewPassword' is your new password. answered Oct 14, 2014 at 7:17
Vidhyut PandyaVidhyut Pandya 1,5671 gold badge13 silver badges27 bronze badges 1 I had a problem with this. I didn't even create any passwords so I was confused. I googled it and I found out that I should just write root as username and than click GO. I hope it helps. answered Jan 30, 2018 at 19:34
1 Hello, I am a beginner. if ($_SERVER['REQUEST_METHOD']=='POST'){ $username = $_POST['username']; $password = $_POST['password']; require_once('dbConnect.php'); $sql= "SELECT * FROM user WHERE username = '$username' AND password = '$password' "; $result = mysqli_query($con,$sql); $check = mysqli_fetch_array($result); if(isset($check)){ echo 'success'; }else{ echo 'failure'; } } ?> |