Hi,
I need to create a database more than 200. i create shell script and using this code :
in mysql :
and user dbmaptool :
everything ok to this section, but in cPanel user don't added to database. i have read this :
http://forums.cpanel.net/f354/creating-database-manually-193012.html
http://forums.cpanel.net/f354/create-mysql-database-user-via-shell-71968.html
http://forums.cpanel.net/f354/creating-database-manually-193012.html
how can i fix this problem ?
I need to create a database more than 200. i create shell script and using this code :
in mysql :
Code:
create database USERNAME_dbname;
GRANT ALL PRIVILEGES ON USERNAME_dbname.* TO 'USERNAME_dbuser'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
Code:
/usr/local/cpanel/bin/dbmaptool USERNAME --type mysql --dbs USERNAME_dbname' && /usr/local/cpanel/bin/dbmaptool USERNAME --type mysql --dbusers 'USERNAME_dbuser'
http://forums.cpanel.net/f354/creating-database-manually-193012.html
http://forums.cpanel.net/f354/create-mysql-database-user-via-shell-71968.html
http://forums.cpanel.net/f354/creating-database-manually-193012.html
how can i fix this problem ?