Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: admin username change  (Read 5015 times)

0 Members and 1 Guest are viewing this topic.

kipper

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
admin username change
« on: October 08, 2006, 02:21:28 am »

Is it possible to change the admin username from the one on first install?
« Last Edit: October 08, 2006, 01:58:28 pm by Nibbler »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: admin username change
« Reply #1 on: October 08, 2006, 04:20:52 am »

Create another admin account. Log in as the second admin and change the first admin's name.
Logged

kipper

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: admin username change
« Reply #2 on: October 08, 2006, 01:42:38 pm »

Thank you for that, so simple really I never thought of it. ;D

Case closed ;)
Logged

electrode

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: admin username change
« Reply #3 on: November 15, 2006, 05:10:24 am »

While were on the subject, if the admin owns images, what happens to the ownership? Do the images get associated with the new name?
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: admin username change
« Reply #4 on: November 15, 2006, 06:21:41 am »

No , You need to manually change the owner name under xxx_pictures table
Logged
‍I don't answer to PM with support question
Please post your issue to related board

popersman

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: admin username change
« Reply #5 on: October 24, 2007, 10:03:38 am »

If i may ask, in the xxx_pictures table, what command would i need to enter to replace automatically Username1 by Username2?
I got about 70 pages of xxx_picture table, and I'd love to be able to automate this.

Sorry to be digging such an old topic, I did try replacing manually in a text editor Username1 by Username2 and uploading the modified file, but to no success.
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: admin username change
« Reply #6 on: October 24, 2007, 10:09:50 am »

something like this
Code: [Select]
UPDATE `xxx_pictures` SET owner_name = 'Username2' where owner_name='Username1'

Always take a backup
Logged
‍I don't answer to PM with support question
Please post your issue to related board

popersman

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: admin username change
« Reply #7 on: October 24, 2007, 10:18:05 am »

Many many thanks, it worked like a charm.

I unfortunately have to clean up my online record as I'm prospecting for a job, and am likely to get googled... Some photos just shouldn't make it to my new boss's eye!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: admin username change
« Reply #8 on: November 02, 2007, 05:11:44 pm »

An unrelated posting (thread hijacking attempt) by TeresaBloom has been split from this thread into a separate one. It has been renamed to "Forgot admin user name". Don't hijack unrelated threads in the future, as we have a strict "one question per thread" policy that you agreed to respect when signing up. Locking this thread now to avoid it getting cluttered. *sigh*
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.