+ Reply to Thread
Results 1 to 3 of 3

Thread: Anyone help plz: database problem

  1. #1
    amplec's Avatar
    amplec is offline x10Hosting Member amplec is an unknown quantity at this point
    Join Date
    Dec 2009
    Posts
    9

    Anyone help plz: database problem

    I have an admin panel of my site. But i have forgotten the admin panels password, that is why i'm being unable to access my admin panel. Can i recover or reset or create password by editing databases in phpmyadmin?


    It's the starting of my sql database:

    PHP Code:
    -- phpMyAdmin SQL Dump
    -- version 2.11.2
    -- http://www.phpmyadmin.net
    --
    -- 
    Hostlocalhost
    -- Server version5.0.45
    -- PHP Version5.2.5
    --
    --

    SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

    --
    -- 
    Database: `d`
    --

    -- --------------------------------------------------------

    --
    -- 
    Table structure for table `admins`
    --

    CREATE TABLE IF NOT EXISTS `admins` (
      `
    aIdint(11NOT NULL auto_increment,
      `
    aUsernamevarchar(255NOT NULL,
      `
    aPasswordvarchar(255NOT NULL,
      `
    aPermissionstext NOT NULL,
      
    PRIMARY KEY  (`aId`)
    ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=;

    --
    -- 
    Dumping data for table `admins`
    --

    INSERT INTO `admins` (`aId`, `aUsername`, `aPassword`, `aPermissions`) VALUES
    (1'admin''f8c5a65f897fda65e5379b351f9f13e1b552781a''ALL');

    -- -------------------------------------------------------- 
    Last edited by amplec; 02-01-2010 at 05:36 AM.

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Anyone help plz: database problem

    If you know what hash algorithm was used, you can set the password using an UPDATE statement:

    Code:
    UPDATE admins SET aPassword='...' WHERE aId=1
    Quote Originally Posted by amplec View Post
    Code:
    INSERT INTO `admins` (`aId`, `aUsername`, `aPassword`, `aPermissions`) VALUES
    (1, 'admin', '******', 'ALL');
    Never post sensitive information, even if it's hashed. Fortunately, you're going to change your password, so it doesn't matter in this case.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    xgreenberetx is offline x10Hosting Member xgreenberetx is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    57

    Re: Anyone help plz: database problem

    If all else fails just use phpmyadmin and select the table with the admin name and password, and click the pencil icon to edit, then change the password. Then you can always do a password change to re encrypt it.

+ Reply to Thread

Similar Threads

  1. Database problem and unable to logon to cpanel
    By satbir in forum Free Hosting
    Replies: 1
    Last Post: 01-23-2010, 12:58 PM
  2. Problem selecting database with PHP
    By stevet70 in forum Programming Help
    Replies: 2
    Last Post: 01-05-2009, 03:41 PM
  3. new database problem
    By MarkdeVries in forum Free Hosting
    Replies: 2
    Last Post: 04-15-2008, 05:54 PM
  4. My SQL Database problem
    By thefox91 in forum Free Hosting
    Replies: 2
    Last Post: 12-22-2007, 07:54 AM
  5. Database been deleted problem
    By Relemar in forum Free Hosting
    Replies: 2
    Last Post: 09-21-2007, 10:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers