473,396 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Display userids/passwords using PHPMYADMIN

Im sorry guys I wont pretend to know much about databases. I just spent the day setting up a website, 7 hours of work and I decided to change the default password which is stored in a MYSQL database and something went wrong.

Now I cant login to my site, I can access my database through PHP

I have a table called dir_admins and a field called Name and one called password is there a way to see whats in there or better yet change the info?
Feb 17 '07 #1
5 3898
ronverdonk
4,258 Expert 4TB
Instead of trying to remember whatever you did and what you changed it into, just re-install MySQL server. Takes 30 minutes and that time is a lot shorter than trying to break a table of which the password is probably encrypted anyway.

Ronald :cool:
Feb 17 '07 #2
Its not the password to MYSQL that I lost, its a password in MYSQL for a website there has to be a query or something to find it if its in there right?
Feb 17 '07 #3
ronverdonk
4,258 Expert 4TB
When you can access the db, you should be able to issue the
Expand|Select|Wrap|Line Numbers
  1. SELECT Name, password FROM dir_admins
command.

Hwoever, a password is usually stored using some encryption scheme, like PASSWORD() or SHA1() or MD5(). When that is the case, you won't be able to de-crypt it.

Why don't you just add the same userid and a new password to that (user)
table?

Btw: this is a MySQL problem so I'll move the thread to the MySQL forum.

Ronald :cool:
Feb 17 '07 #4
When you can access the db, you should be able to issue the
Expand|Select|Wrap|Line Numbers
  1. SELECT Name, password FROM dir_admins
command.

Hwoever, a password is usually stored using some encryption scheme, like PASSWORD() or SHA1() or MD5(). When that is the case, you won't be able to de-crypt it.

Why don't you just add the same userid and a new password to that (user) table?

Ronald :cool:
Thanks that returs an empty result, which probably means while I was editing my site I screwed up. Are you able to tell me how I could add a new name and password? Thanks a lot for your help
Feb 17 '07 #5
Your title suggests your using phpmyadmin, if so you should be able to go into the database itself and view the log in table and going through those options (dont remember exactly which to pick) you can find the log in and passwords for all registered members including admin.
Feb 20 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: SCS | last post by:
Running PHP 4.5.7 PHPMyAdmin 2.5.7-pl1 IIS 6 I am thrying to get phpmyadmin to work, but whenever I click a link or try to browse a database I get a 404 error, because the PmaAbsoluteUri...
3
by: timbratureman | last post by:
I have a txt file in my server. I have to provide to the user 2 links. One link is to download the file and the other one is to display it inside the browser. Is it possible? I made <a...
0
by: LRW | last post by:
I manage our mySQL database through putty (SSH terminal client). And whenever I do a select * from the table that contains ENCODEd passwords, the funky characters do funky things with the display....
0
by: maddunr | last post by:
Hi, I just installed PHP 4.3.9, MySQL 4.0.2 and PHPMyAdmin 2.6.0-pl3 on our intranet server (Win2k3 running IIS). I also have a similar setup on my local machine (http://localhost/phpmyadmin). ...
0
by: Howard | last post by:
I have Apache Web Server 2.0.55 installed locally with MySQL 5.0.18-nt, and of course PHP 5.1.2 I also have installed phpMyAdmin. It is accessible through http://localhost/phpMyAdmin. The pathing...
2
by: Bob Stearns | last post by:
Linux accepts the userid '00001', and I can login to my database with that userid. But when I try to grant privileges to that userid I get: DB2 SQL error: SQLCODE: -104, SQLSTATE: 42601,...
5
by: Marcus | last post by:
Hello, I am having a problem with a query in phpMyAdmin... it works fine on my localhost, but the exact same query produces an error in phpMyAdmin on my server: localhost: PHP 4.3.11, MySQL...
2
by: Shinya | last post by:
I am using phpMyAdmin to see japanese text in side of the table. However, I can only see menu items in japanese but the content is somehow garbled. MySQL - 4.1.21 phpMyAdmin - 2.8.2.1 db...
0
by: Mark | last post by:
sorry..this is directed specifically to phpMyAdmin. when I go to mysite.com/phpMyAdmin, on the left column it says "no databases" but I can manually tell it USE 'my_database_name'; SELECT *...
4
by: DavidAWeis | last post by:
Does anyone else support SAP running onto of DB2 in an unix environment? The consultants we have in here are insisting on creating a different DB2INST owner/userid for each environment and...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.