Loading...
 
Skip to main content

Architecture / Installation


No Admin Account

Hi everyone,

I changed the name of my admin account to my name, and in turn obviously removed the admin account. I saw in the faq that I can ins ert the admin user into the DB, but I'm not sure how I would do that. I am running this on an IIS server hosted by my hosting company, I don't have phpmyadmin but instead I have a program called Helm which as far as DBs go it really only lets me create a db (as I had to do during the tiki install).

Is there any php code I can run to add the user into the db to fix this? If not, what can I do? I didn't get that far into setting my tiki up, so I could just re-install the whole thing, however I'd prefer not having to do that.

Thanks for any help/ideas!
Matt

Got caught up in a couple other things and put this on the back burner. I guess I'm just going to have to re-install tikiwiki

Spoke too soon.. 😊 reinstall didn't work (without deleting the DB anyway)
Learned quite a bit of how php works too just now, so I figured I'd pass this on should anyone else have the same issue:

Create a file, i called mine addadmin.php
Paste in the following



Put it in your root tiki directory, and call it from a webbrowser. done.


Don't forget to delete the file after running!


Ok, I guess I couldn't paste it as-is. Copy/paste this into your addadmin.php and replace:
~ with less-than
* with semi-colon
% with dollar sign

~?php
include_once('tiki-setup.php')*
%userlib->add_user('admin', 'admin', 'ad...@do...')
?>