Spyros

Member
Jul 1, 2014
16
0
1
Athens, Greece, Greece
cPanel Access Level
Root Administrator
Hi all,

We have 2 cloudlinux servers with cpanel bought from Hentzer. we had an automatic proccess to create database via ssh and then mount the with /usr/local/cpanel/bin/setupdbmap. all was ok untill the setupdbmap script stop working, no error message just don't start from ssh.
the server has CLOUDLINUX 6.5 x86_64 standard – server WHM 11.44.0 (build 19) and mysql 5.5.

any ideas why script stop working?

Regards
Savvanis Spyros
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

The following information from this script should be helpful:

Prior to cPanel & WHM 11.44 this script also created the mapping files based on database names; e.g., "frank_mydata" would be interpreted as "frank"’s database. Since 11.44 removes any connection between a database's name and its owner's name, all that is left for this script to do is to ensure that the directory for the mapping files exists.

Since you are creating a database through a script, you may want to utilize our API to create the databases so they are associated with a particular account.

Thank you.
 

Spyros

Member
Jul 1, 2014
16
0
1
Athens, Greece, Greece
cPanel Access Level
Root Administrator
Hi Michael,

i found the api of cpanel and test it, working great thx a alot :)

Hello :)

The following information from this script should be helpful:

Prior to cPanel & WHM 11.44 this script also created the mapping files based on database names; e.g., "frank_mydata" would be interpreted as "frank"’s database. Since 11.44 removes any connection between a database's name and its owner's name, all that is left for this script to do is to ensure that the directory for the mapping files exists.

Since you are creating a database through a script, you may want to utilize our API to create the databases so they are associated with a particular account.

Thank you.