Jordz2203 Verified User Joined Sep 8, 2022 Messages 74 Nov 12, 2022 #1 Hi, Im making a cli script to setup clients websites, but the issue I am having is database creation, how can I create a DB via the CLI for the user I am logged in as?
Hi, Im making a cli script to setup clients websites, but the issue I am having is database creation, how can I create a DB via the CLI for the user I am logged in as?
Zhenyapan Verified User Joined Feb 23, 2018 Messages 2,446 Location UA Nov 12, 2022 #2 you can do it as root, connect to mysql/mariadb with da_admin credentials from /usr/local/directadmin/conf/my.cnf
you can do it as root, connect to mysql/mariadb with da_admin credentials from /usr/local/directadmin/conf/my.cnf
Jordz2203 Verified User Joined Sep 8, 2022 Messages 74 Nov 12, 2022 #3 Zhenyapan said: you can do it as root, connect to mysql/mariadb with da_admin credentials from /usr/local/directadmin/conf/my.cnf Click to expand... Can I do it as a user? I have an external system connecting to the user account and running CLI commands
Zhenyapan said: you can do it as root, connect to mysql/mariadb with da_admin credentials from /usr/local/directadmin/conf/my.cnf Click to expand... Can I do it as a user? I have an external system connecting to the user account and running CLI commands
zEitEr Super Moderator Joined Apr 11, 2005 Messages 15,394 Location www.poralix.com Nov 13, 2022 #4 Use DirectAdmin API for it. A MySQL DB can be created via API with user's credentials, no admin's password is required.
Use DirectAdmin API for it. A MySQL DB can be created via API with user's credentials, no admin's password is required.