Is it possible to create database remotely?

Discussion in 'Security' started by gopkris2000, Jun 26, 2010.

  1. #1
    Hi Techs,

    I have enabled remote database connection in my server and set privileges for create table,modify table and etc., Is it possible to create database from remote server?
     
    gopkris2000, Jun 26, 2010 IP
  2. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #2
    Yes, but again, you should have those privileges. You can allow complete access to your Mysql server from a remote location/server and manage everything from there. However, it is not recommended security wise.
     
    madaboutlinux, Jun 27, 2010 IP
  3. NQhost

    NQhost Member

    Messages:
    141
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    45
    #3
    Also, you can use a web-based interface (for example phpMyAdmin) to create DB's.
     
    NQhost, Jun 29, 2010 IP
  4. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #4
    it is absolutely possible
    provided you are familiar with the work you do from your offline home use and work with mysql tables

    there are at least 3 options to work remotely ( I do all my mysql stuff on my servers since years remote )

    1.
    you have phpMyAdmin installed on your remote server
    in this case you may simulate or test all operations first on your offline home install

    and after each working SESSION you may want to chmod 000 your entire phpMyAdmin !!

    2.
    you are connected via SSH ( serverkey ) to your remote server
    and work directly in your remote bash and mysql shell if you know the CLI commands

    3.
    you have phpMyAdmin installed at home
    do all the operations first on your home install
    that gives you in your phpMyAdmin the complete syntax for your mysql shell
    copy and paste that successful mysql syntax into your remote server shell to repeat the operation on your remote mysql

    in addition for repeat remote operations you either KNOW the mysql command lines or you copy paste them into an admin text file at home for later reuse as needed

    I do mostly solution 3 and have a local phpMyAdmin for full offline testing of important operations
     
    hans, Jun 30, 2010 IP
  5. adamsinfo

    adamsinfo Greenhorn

    Messages:
    60
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #5
    You can either SSH to the server and then create it 'locally' which is probably the recommended method. Alternatively, you can bind MySQL to a public address and connect directly to MySQL. a) It's a security risk as mentioned above, and b) everything you send back and forth over MySQL/3306 is unencrypted plaintext. Anyone in the middle can sniff.
     
    adamsinfo, Jul 17, 2010 IP
  6. CoderJosh

    CoderJosh Peon

    Messages:
    45
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It's possible, but from a security point of view, also dangerous. Either restrict access to the database to the local machine (you can still use phpMyAdmin to manage the database using a web interface) or, at the very least, restrict those hosts that can access the database server remotely.
     
    CoderJosh, Jul 29, 2010 IP