Jump to content
  • 0

[Help] how to access another database?


Question

Posted

months now i wonder how a developer is sure that the admin wont dismiss him from the staff if they have an argument. anyway thats not my question.

 

i wanna know how can i access a servers database without accessing the servers machine. im not talking about hacking. i can access the servers machine at the moment and i can do whatever i want in it. i just want always to control the server.

 

anyway my question is simple: how can the admin give me permissions to access his servers database from my pc?

9 answers to this question

Recommended Posts

  • 0
Posted

months now i wonder how a developer is sure that the admin wont dismiss him from the staff if they have an argument. anyway thats not my question.

 

i wanna know how can i access a servers database without accessing the servers machine. im not talking about hacking. i can access the servers machine at the moment and i can do whatever i want in it. i just want always to control the server.

 

anyway my question is simple: how can the admin give me permissions to access his servers database from my pc?

Just tell him to create a user for you and allowing external connections in the MySQL Config. Thats it

  • 0
Posted

You can also create another account(ID/PW) using the navicat.

 

accessp.jpg

 

 

 

Keep in mind that the server's 3306 port both tcp and udp must be opened.

  • 0
Posted

Duh, you just have to connect using Navicat/phpmyadmin/php.

 

"USERNAME"@"MYSQL_SERVER_HOST" using "PASSWORD"

 

PHP Example:

 

<?php
$con = mysql_connect("localhost","peter","abc123");//localhost=MYSQL_SERVER_HOST peter=USERNAME abc123="PASSWORD"
if (!$con)
 {
 die('Could not connect: ' . mysql_error());
 }

// some code

?>

 

 

For more info: http://w3schools.com/php/php_mysql_intro.asp

 

Take it as a comment: You're supposed to be a dev?

  • 0
Posted

Duh, you just have to connect using Navicat/phpmyadmin/php.

 

"USERNAME"@"MYSQL_SERVER_HOST" using "PASSWORD"

 

PHP Example:

 

<?php
$con = mysql_connect("localhost","peter","abc123");//localhost=MYSQL_SERVER_HOST peter=USERNAME abc123="PASSWORD"
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

// some code

?>

 

 

For more info: http://w3schools.com/php/php_mysql_intro.asp

 

Take it as a comment: You're supposed to be a dev?

i wouldnt say that. its just that the admin hasn't any idea about servers so i am better than him so i am his developer

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock