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

though i dont understand how it will contact with my computer, i will try it and i will tell you if it worked or not. thank you man

  • 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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