Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-05-12 12:55:09
- Krigsoffer
- Member
- From: DK
- Registered: 2005-12-08
- Posts: 13
How to change admin username?
I’ve searched, and found this topic
But what’s the procedure, for doing that?
Offline
Re: How to change admin username?
You should have some kind of database access, via shell or PHPmyAdmin.
If you have PHPmyAdmin just open the “txp_users” table and edit the name field.
If not, you’ll have to do it via a mySQL command at the ssh prompt, which would necessitate someone else’s help.
Hope this helps
Offline
#3 2006-05-13 11:22:01
- Krigsoffer
- Member
- From: DK
- Registered: 2005-12-08
- Posts: 13
Re: How to change admin username?
Alrighty-then!
It worked, but the original author is still credited as my old name.
Any way to change this?
Offline
#4 2006-05-13 11:29:37
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: How to change admin username?
Sure. Assuming that you’re not use prefixes for your database:
UPDATE textpattern SET `AuthorID` = 'new_username' WHERE `AuthorID` = 'old_username';
UPDATE textpattern SET `LastModID` = 'new_username' WHERE `LastModID` = 'old_username';
UPDATE txp_image SET `author` = 'new_username' WHERE `author` = 'old_username';
:)
Offline
Pages: 1