Community discussions

MikroTik App
 
reza.mnp
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Mon Jun 11, 2007 9:44 am
Location: ilam - iran
Contact:

import cvs or sql file to user manager

Wed Oct 15, 2008 1:59 pm

how can i import cvs or sql file(contain user and pass) to userman mikrotik?
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: import cvs or sql file to user manager

Wed Oct 15, 2008 3:32 pm

What information do you want to import to User Manager ?
 
reza.mnp
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Mon Jun 11, 2007 9:44 am
Location: ilam - iran
Contact:

Re: import cvs or sql file to user manager

Sat Oct 18, 2008 9:16 am

user
password
group
time
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: import cvs or sql file to user manager

Mon Oct 20, 2008 12:46 pm

Why do you need to import them ?
Where is the problem to generate new batch of users with 'Add Batch' option ?
 
reza.mnp
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Mon Jun 11, 2007 9:44 am
Location: ilam - iran
Contact:

Re: import cvs or sql file to user manager

Mon Oct 20, 2008 2:52 pm

i want user the sql existing database
 
hunter3d
just joined
Posts: 2
Joined: Thu Mar 12, 2009 10:50 pm

Re: import cvs or sql file to user manager

Thu Mar 12, 2009 10:59 pm

I would like to know if it is possible, I have the same problem.
I have a Mikrotik 3.19 with external Radius Server (Radius Manager) but I already have many (300 users names registered) but now I'm getting a lot of problems, the Mikrotik just get freeze every couple hours, I think that is a problem with Radius Comunication, So I was wondering if I can import all those users names to the User Manager database.

How can we edit the usermanager database? Is it possible... (myphpadmin or remote Mysql commands???)
 
kolinsb
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Sat Jun 30, 2007 7:22 pm

Re: import cvs or sql file to user manager

Tue Apr 07, 2009 4:40 pm

i have same problem :( i solved a little piece of it. i created some excel file, and i generated command (with concatenate command) for adding every of user in user manager. now i have another problem. when i paste 50 lines of commands in terminal window, it ask me for name, and i need press enter after every of command for adding user :(

examaple: when i paste this in terminal window
/tool user-manager user add username=adelina.avdic password=qk3421e subscriber=admin group=ucenici
/tool user-manager user add username=adnan.avdicevic password=wl3422r subscriber=admin group=ucenici
/tool user-manager user add username=aida.avdic password=ey3423t subscriber=admin group=ucenici
/tool user-manager user add username=aldin.alihodzic password=rx3424z subscriber=admin group=ucenici
/tool user-manager user add username=armel.abdurahmanovic password=tc3425u subscriber=admin group=ucenici
/tool user-manager user add username=asima.abidovic password=zv3426i subscriber=admin group=ucenici
/tool user-manager user add username=belmin.avdic password=ub3427o subscriber=admin group=ucenici
/tool user-manager user add username=dina.alihodzic password=in3428p subscriber=admin group=ucenici
/tool user-manager user add username=ekma.avdic password=om3429a subscriber=admin group=ucenici
/tool user-manager user add username=eldin.abdurahmanovic password=pq3430s subscriber=admin group=ucenici
/tool user-manager user add username=eldin.ahmetovic password=aw3431d subscriber=admin group=ucenici
/tool user-manager user add username=elmir.avdusinovic password=se3432f subscriber=admin group=ucenici
/tool user-manager user add username=fadil.alajmovic password=dr3433g subscriber=admin group=ucenici
in the end of terminal window i get line name: and that for each user :( can i bypass that?
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26950
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: import cvs or sql file to user manager

Wed Apr 08, 2009 4:29 pm

maybe you should add name=something to the end of each line in what you are pasting :) note that username and name are different things
 
kolinsb
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Sat Jun 30, 2007 7:22 pm

Re: import cvs or sql file to user manager

Thu Apr 09, 2009 12:03 am

thanks man :) :) :mrgreen: u solved my problem :)
 
woodmi
just joined
Posts: 6
Joined: Thu Jan 07, 2010 4:22 pm

Re: import cvs or sql file to user manager

Tue Apr 20, 2010 5:35 pm

Is it possible to run this with a script that would automatically scan the file every 24 hours. That way if a new user was added it would automatically get added.