Wordpress - The username is not registered on this site - mysql

I'm hosting a Wordpress instance on a VPS with MariaDB. Everything seemed to work fine until now where I will try to log into my account but it says,
The username {name} is not registered on this site. If you are unsure of your username, try your email address instead.
I've never gotten this error before so I checked the MariaDB and the user is in the wp_users table. I even changed the password to make sure the password was correct. Any help is appreciated! and thank you in advance.

You can also create a new admin user from SSH access into your VPS.
For this:
Go to your website root directory.
Run the following command:
wp user create $username $emailaddress –role=$role
Be sure to replace the ($username and $emailaddress) example values with your own custom values and ($role) the role you would like the user to be configured with. When the command completes running, a password will be returned, as in the example output below:
exampl3#example.com [~/public_html]# wp user create exampl3
admin#example.com –role=administrator Success: Created user 2enter
code here Password: srWCdc3c*(&b
Refer to the table below, to determine what each role’s capabilities are. This will help you to choose which role to set as the user in the command above.
Role Description
Super Admin Can access all administration features (including site
network administration). Administrator => Can access all
administration features (within a single site). Editor => Can publish
and manage posts (including posts by other users). Author => Can
publish and manage their own posts. Contributor => Can write and
manage their own posts (but cannot publish). Subscriber => Can only
manage their profile.
After creating your account, try to log in again.
Hope this will fix your issue.
Regards

Related

phpvms and mySQL password rest

I brought a virtual airline and for my security I would like to change the password on the myphpadmin and mySQL.
I am very new to this and I'm not sure where to find this and or do it.
any help is very welcome
Many Thanks
Your phpMyAdmin is protected by the MySQL authentication; so when you change your MySQL password it will also change for when you log in to phpMyAdmin. To do so, if you have the proper permissions, you'll see a link to "Change password" near the top of the "General settings" area of the main page. Note that in doing so, you will need to update the password in any other software that uses the same credentials, including phpMyAdmin only if you use the auth_type 'config'.
If you don't see the link, your user account doesn't have permission to change the password directly. Some web hosting providers do this (I'm not sure why) and in many of those cases, provide some external means to change your password (perhaps through their management interface). However, in those cases it depends specifically on your provider and you'd have to ask their support staff for further assistance.

Unable to login to sonar

I am trying to setup sonar in my pc.
Following the exact same steps as per official documentation.
I changed the database to mysql and port to 4950.
sonar.web.port=4950
sonar.jdbc.username=sonar
sonar.jdbc.password=root
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance
Now I can access sonar at port 4950,mysql contains a table of users which has a row of admin but i am unable to login with admin credentials.
I reverted back to its embedded database but still unable to login with admin credentials. Is there any property required to set or am I missing something. Please help
The docs include advice for when admin is locked out. In short, you might need to run some SQL:
INSERT INTO user_roles(user_id, role) VALUES ((select id from users where login='mylogin'), 'admin');

mysql, get superadmin password and user name

I need to work with a site where they don't remember the super admin password and user name. I can access to the database but with a no full access account.
If I have access to all the files in php my admin, can I get the password and the user name of the super admin?
This depends on how much access to the MySQL services on the server you can get. Try looking up "How to Reset MySQL Root password."
On top of what Tony Arnold said, you should be able to find the super admin pass within the MySQL database (of course depending on the database as stated above) this might help you:
https://docs.joomla.org/How_do_you_recover_or_reset_your_admin_password%3F#Method_1:_configuration.php_file

Issue in my Drupal site

I am unable to login admin panel of my site which is developed in Drupal. I had tried the below link, but it's showing as "You are not authorized to login this page"
http://fujisushiflorida.com/?q=admin
After some surfing in net I had tried the below link. It had shown the login page, but the password I had entered is not correct think. So I had planned to change the password in DB. I had gone to phpmyadmin in that selected "user" table and the first reflecting data is the admin data so I had changed the password of that directly in DB also changed the function to MD5 since pwd has been encrypted. Post changing the password I tried to login but getting the error as "unrecognized username and password"
http://fujisushiflorida.com/user
Can you please help me out on this issue.
Not sure how exactly user info is stored, but generally speaking you can install new Drupal site, grab table rows of your admin account there and move them to problematic site, where you lost your account.
In the database check that you have a user with id of 1 and check that their username and email are what you are expecting.
To reset the password:
If your site is sending emails you should just be able to request a new password.
If you can create an anonymous user without admin verification create one with a password. then in the database copy the password from the new user to the number 1 user.
Otherwise create a user on a clean install or dev site and copy over the password from the database.
Try the forgot password on the login screen if your admin has your email address.
If you can SSH into the server your site is hosted on, install drush if you do not have it and use the drush user-login

WordPress/Digital Ocean mysql password reset (difficult scenario) I'm stumped

Before I start I'd like to state that I know very little about SQL so bear with me please.
I recently signed up for hosting with digital ocean, I make WordPress websites so I created a droplet and everything was in working order, had my blog running and everything... Last week I made some tweaks to my blog, one of them being the change of username and password. Im usually always logged into my admin panel but I restarted my PC and now I cant get into my admin panel (I've forgotten the username and password.) I tried every option available to me on http://codex.wordpress.org/Resetting_Your_Password (even the emergency.php) but to no avail. The usual password reset email is not working so I figure its because the host is running an ssh server and that causes some interference with the email system.. anyway the only option left that I haven't tried for password reset is the phpmyadmin option, now this is a whole new thing with digital ocean for me. They don't have a cpanel so everything is done via ssh; I was able to figure out the gist of it, and attempted to create a database - now here is where it got tricky... (Since my blog was already up and running shouldn't it already have a database?) Every time I try to create a new SQL username/pass it succeeds in doing so, but then when I attempt to use that password to login to my shell I get this error: ERROR 1045 (28000): Access denied for user 'root'#'localhost' (using password: YES)
It makes no sense to me because I've just created the username and password yet it does not let me login with it. I am honestly beyond confused and THE ONLY REASON I EVEN WANT TO ACCESS PHPmyadmin IS JUST SO I CAN VIEW MY USERNAME AND PASSWORD TO LOGIN TO MY WORDPRESS ADMIN PANEL.
If anyone has an alternative for me to retrieve my username (even just my username would be fine because then I could use the emergency.php option) or how to get into phpmyadmin I would greatly appreciate it!
Thank you so much for your time and efforts in advance, this is very difficult for me.
You didn't mention anything about granting permissions to your MySQL users. From Digital Ocean (https://www.digitalocean.com/community/articles/how-to-create-a-new-user-and-grant-permissions-in-mysql):
CREATE USER 'newuser'#'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'newuser'#'localhost';
Rather than trying to read your password, which is most likely encrypted, you should try to change it.
use mysql;
update user set password = password('new-password') where user = 'you';
From your question it looks like you might also be digging for a Wordpress password. I'm not as familiar with that, but I can at least give you some basic guidelines:
show databases (see a list of the databases. try to pick the one that seems logical)
use myWordpressSite;
show tables (see a list of all the tables in that database)
describe thisTableOfInterest; (will display the columns and field types)
select someColumn from thisTableOfInterest;
I hope that helps.