Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hello

i am having two remote MySQL database servers ,one with 5.5 community edition and win2012 server OS on storage server and another with 5.1 community edition and winxp os on a p4 machine. for the both i have around 200+ users accessing data through winform applications.

now we are planning to upgrade our server on p4 machine and bought a higher end machine with win7,xeon processor configuration and we installed MySQL 5.5 community edition server.

the problem is MySQL server is not allowing to connect to it unless we manually add each user. adding 200+ users is tedious job and the no of users are increasing every day. is there any solution for this so that i can make my MySQL server as multiuser without adding each user manually.

thanks in advance
Posted
Updated 1-Dec-14 18:19pm
v4
Comments
Mehdi Gholam 2-Dec-14 0:53am    
Managing users is part of the DBA's job.

1 solution

You can create a script of exiting user on the old DB:
SQL
select
	CONCAT_WS(' ', 'create user', '''', User, '''', 'identified by password', '''', Password, ''';')
from mysql.user

Than run that script on the new DB...

http://dev.mysql.com/doc/refman/5.1/en/create-user.html[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900