Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - goko123321

Pages: [1]
1
CWP API / mysql user add help
« on: April 22, 2023, 12:22:42 PM »
I am adding user and database without any problem with the following codes

my question is what is the code that combines the user and database I added  :-\

veritabanı üzerinde işlem yapamadığım için izin istiyor




$data = array("key" => "MYKEY","action"=>'list',"user"=>'MYUSER');
$url = "https://IPSERVERAPI:2304/v1/databasemysql";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt ($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt ($ch, CURLOPT_POST, 1);
$response = curl_exec($ch);
curl_close($ch);



$data = array("key" => "MYKEY","action"=>'list',"user"=>'MYUSER');
$url = "https://IPSERVERAPI:2304/v1/usermysql";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt ($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt ($ch, CURLOPT_POST, 1);
$response = curl_exec($ch);
curl_close($ch);

2
Updates / mysql database and user (User priviligies) api
« on: April 11, 2023, 01:51:53 PM »
Hello, I created mysql and database. but the api does not associate the user with the database

cwp -> mysql manager -> action -> User priviligies  -> add user add user to database

I want to do this on the api but there is no ???

3
CWP API / mysql database and user (User priviligies)
« on: April 09, 2023, 01:51:49 PM »
Hello, I created mysql and database. but the api does not associate the user with the database

cwp -> mysql manager -> action -> User priviligies  -> add user add user to database

I want to do this on the api but there is no


Pages: [1]