I am getting below error while adding any user in opensips
MySQL ERROR 1045 (28000): Access denied for user
'opensips'#'localhost' (using password: YES) info: user 1234 already
exist
Please help me to resolve
1234 user is already exist into mysql subscriber table. So it is not
allowing to add similar one again. Just delete the 1234 user from
subscriber table from kamailio database and then try again.
It's 99% mysql level issue.
Check "etc/opensips/opensipsctlrc" file if it has right users and passwords for db.
Then try to create db with "opensipsdbctl create anydb"
Then try to use created db for manage opensips users.
Related
I have added a user to a database through cPanel called "DB-USERNAME". My cPanel user is "USERNAME". When I am trying to connect to this server, I get a message saying:
Error: (conn=10219304, no: 1045, SQLState: 28000) Access denied for user 'USERNAME_DB-USERNAME'#'85-76-48-128-nat.******.fi' (using password: YES)
However, I can login with just the cPanel user just fine. If I try to make any changes, like create a new database or connect to one, I get:
Error: ER_DBACCESS_DENIED_ERROR: Access denied for user 'USERNAME'#'%' to database 'test'
What can I do? I have been stuck with this for a few days now. I can't resolve this with google.
Did you join your user name with database in Cpanel, if no then
Please follow below mentioned steps to add a MySQL user to a database:
Click MySQL Databases under Databases in cPanel.
2.Under Add User to Database, select the user that you want to add from the User drop-down menu.
3.In the Database drop-down menu, select the database.
4. Click Add.
5. Select the privileges you want to grant the user, or click ALL PRIVILEGES to grant the user all permissions to the database.
6. When ready, click Make Changes.
7. That’s it! You can now see the user assigned to the database in the Current Databases table.
Now check if your issue fixed, if still not fixed then Please check our db connection string.
We are rolling out a new DEV AWS Server. Here we are using mysql DB. I use Admin account to grant privileges to users, but it somehow is rejecting it. This was also the reason I wasn't able to export QA schema into Dev that I'm trying to do for my project. It could be something simple but because of this I'm not able to make progress. Can anybody throw some lights please?
Error Saving Account:
"Error changing account admin#%"; Access denied for user 'admin'#% (Using password: YES)
This is mysql root account lock issue. We updated using following command.
SET PASSWORD FOR root#'localhost' = PASSWORD('password');
I am setting up my local development environment using XAMPP for writing websites using Laravel.
The issue im facing is that I cannot connect to the MySQL database with any new user I create. I give one user limited privileges for only one database and cannot connect using the correct password.
I tried making an admin user with full privileges on all databases and tables, and still cannot connect with the correct password.
The returned error is always the same -
SQLSTATE[HY000] [1045] Access denied for user 'laravel'#'localhost' (using password: YES)
and
ERROR 1045 (28000): Access denied for user 'admin'#'localhost' (using password: YES)
where laravel is the username, admin is the other one etc.
This is not related to Laravel as I keep getting this error even when I try to connect from the command line (as shown in error code number 2).
The 'anonymous' user has been removed to make sure MySQL doesn't match it by mistake, I have flushed privileges and restarted services countless times.
The default root user without password can connect, but no new users that I create with passwords can.
Solved the problem by re-installing XAMPP, nothing else.
I'm playing around with MySQL and Django and I'm having some trouble because I'm new to this.
I'm trying to run the command:
python manage.py sql login
to add login to my apps and I get the error:
OperationalError: (1044, "Access denied for user 'classdummy'#'localhost' to database 'classydummy'")
I tried looking for the database 'classdummy' and user 'classdummy'#'localhost' but I didnt see them so I tried to create both
I was successful in creating a database named 'classdummy' but when I try to create a user named 'classdummy'#'localhost' I get this error:
ERROR 1396 (HY000): Operation CREATE USER failed for 'classdummy'#'localhost'
I'm not sure if I'm doing all this correctly
Thank you for all the help!
if you can login to mysql as a privileged user, you can run a grant command:
grant all privileges on classdummy.* to 'classdummy'#'localhost' identified by 'mypassword123z';
I created a database named auth yesterday in mysql.
Today, I went to access it by USE auth; but I got this output
ERROR 1044 (42000): Access denied for user ''#'localhost' to database 'auth'
I never used to have this problem when I created and used databases.
Connect to database with root
mysql -u root -pyourpassword
(change yourpassword with password you have for root or leave in blank in case you havent set it). Now you should have access to your db. Check this thread how to set permissions for users MySQL Add User Guide.
maybe try creating and using a new database to see if the problem is repeatable, or if it's specific to that database.