I changed the password for the "root" user in phpmyadmin, now i get an error:
MySQL said: Documentation
Cannot connect: invalid settings.
mysqli::real_connect(): (HY000/1045): Access denied for user 'root'#'localhost' (using password: NO)
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
Tried editing the config.inc.php it says i don't have permission to edit.
Tried doing the terminal through xampp and still no luck. Any help?
Related
I have setup a MySQL database and I am trying to connect to it from another website.
I get this error when I try to connect to it:
Connection failed: Access denied for user 'myUsername'#'localhost' (using password: YES)
It works fine when I do it in the same website where the database is hosted.
I tried this SQL query:
GRANT SELECT, DELETE, UPDATE ON database.myDatabaseName TO 'myUsername'#'localhost' IDENTIFIED BY 'myPassword';
But I got this error:
#1142 - SELECT,UPDATE,DE command denied to user 'Steve'#'localhost' for table 'myDatabaseName'
I went to the MySQL management in the built-in control panel where I modified permissions of Steve and added the Grant permission, however I still get the same #1142 error.
How can I fix this?
Thanks in advance.
Access denied for user 'myUsername'#'localhost' (using password: YES)
That's where the error is. It says you are attempting to connect to localhost with the username myUsername and a supplied password. However, usually on localhost, especially on windows systems, the user is Root and the password is not set, just an empty string. Check your username on your localhost and your password.
I have MAMP server installed on my Macbook and everything worked fine, until I tried to add a password to the 'root' user of localhost. I selected a password and now whenever I go to localhost:8888/phpmyadmin, the page gives me an error saying:
1045 - Access denied for user 'root'#'localhost' (using password: YES)
It also says that the system tried connecting to MySQL, but MySQL rejected the connection and I have to check my username and password settings.
Why is it acting so weird and how can I get my PHPMyAdmin back to work?
It says I need to check the config.inc.php file, but I can't find that file in the MAMP folder.
the config file should be under:
/Applications/MAMP/bin/phpMyAdmin-X.X.X/config.inc.php
Edit it and verify the username//password used
You can always reset the root password using :
http://www.tech-otaku.com/local-server/resetting-mamp-mysql-root-user-password/
I am developing php site using xampp and I am having trouble accessing my MySql database.
I get the following error:
Warning: mysqli_connect(): (HY000/1045): Access denied for user 'guest'#'localhost' (using password: YES) in C:\xampp\htdocs\Clothing\index.php on line 24
Here is the php code to connect to the database:
$conn = mysqli_connect('localhost', 'guest', 'Change01&', 'clothing')
All the credentials such as username and password are definitely correct, I have reset the password in phpMyAdmin about a thousand times and I still get the error. I have also made sure the guest user has all permissions set. What else could be the problem here ? It might be worth mentioning that I have changed the default ports for Apache but not for MySql.
When trying to reach localhost/phpmyadmin in WAMP, I get the following error:
Error: #1045 - Access denied for user 'root'#'localhost'
Please tell me if I need to reset my password, or how to get it?
The MySQL manual explains how to reset permissions, but the MySQL defaults are username root with a blank password. I don't know if WAMP might have set an alternative default password instead.
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'test'#'localhost' (using password: YES) in D:\xampp\htdocs\ngp\connect.php on line 2
Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'ODBC'#'localhost' (using password: NO) in D:\xampp\htdocs\ngp\connect.php on line 4
Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in D:\xampp\htdocs\ngp\connect.php on line 4
This means that the username/password in your connection file is wrong, or that access to the server is not allowed from the machine you're trying to connect from.
This is telling you that the user test and the password you used were not valid and the user ODBC using no password was invalid. Either because they are just wrong or because the users are not allowed to connect from the machine you are connecting from. E.g. if you are connecting remotely from your local machine to a hosted machine.
Check the MySql usernames and passwords you have set up to connect to your database.
Also, show some code!