Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. connect database server from other computer in network

connect database server from other computer in network

Scheduled Pinned Locked Moved Database
mysqlsysadminhelptutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    peterjc
    wrote on last edited by
    #1

    I am building a VB.Net system using MySql database from XAMPP. The problem is, i try to run the system from other computer and change the localhost to 10.0.0.15 because the 10.0.0.15 is the ip for the computer running the database. But, i get the error message "Unable to connect to any of the specified MySQL hosts" I do a lot of searching and i find that i need to add privilage to mysql. But i try many time and still fail. I not really sure how to add it. I am really new to it. I am using phpmyadmin running windows xp. So, example computer A has the mysql server install(using XAMPP) and the ip adress is 10.0.0.15. On the other hand, i install the system on computer B(IP = 10.0.0.20) and want to run the system from computer B but access the database at computer A. So, what is the thing that i need to do? Could someone tell me what i need to add at the privileges and at the connection string, what i need to put at the 'Server' for the connection string? Example connection string: server=localhost; user id=root; password=; database=cegms; Thank.

    H 1 Reply Last reply
    0
    • P peterjc

      I am building a VB.Net system using MySql database from XAMPP. The problem is, i try to run the system from other computer and change the localhost to 10.0.0.15 because the 10.0.0.15 is the ip for the computer running the database. But, i get the error message "Unable to connect to any of the specified MySQL hosts" I do a lot of searching and i find that i need to add privilage to mysql. But i try many time and still fail. I not really sure how to add it. I am really new to it. I am using phpmyadmin running windows xp. So, example computer A has the mysql server install(using XAMPP) and the ip adress is 10.0.0.15. On the other hand, i install the system on computer B(IP = 10.0.0.20) and want to run the system from computer B but access the database at computer A. So, what is the thing that i need to do? Could someone tell me what i need to add at the privileges and at the connection string, what i need to put at the 'Server' for the connection string? Example connection string: server=localhost; user id=root; password=; database=cegms; Thank.

      H Offline
      H Offline
      Hesbon Ongira
      wrote on last edited by
      #2

      Shouldn't the server be 10.0.0.15 instead of localhost? Eliminate all the LAN issues if any and enable the port 3306. When you are trying out the connection, is the Mysql service running or not?

      --------------------------- Both optimists and pessimists are important in technology. The optimist invented the aeroplane; the pessimist invented the parachute. Regards, Hesbon Ongira Nairobi, Kenya.

      P 1 Reply Last reply
      0
      • H Hesbon Ongira

        Shouldn't the server be 10.0.0.15 instead of localhost? Eliminate all the LAN issues if any and enable the port 3306. When you are trying out the connection, is the Mysql service running or not?

        --------------------------- Both optimists and pessimists are important in technology. The optimist invented the aeroplane; the pessimist invented the parachute. Regards, Hesbon Ongira Nairobi, Kenya.

        P Offline
        P Offline
        peterjc
        wrote on last edited by
        #3

        I already change the localhost to 10.0.0.15 actually. I think the problem is on mysql. I am using phpmyadmin. Could you tell me how to enable the port 3306? And any other thing that i need to configure? I also do some searching and found need to "grant access to remote IP address" but i does not know how to do it! I am really new and never configure the mysql, so any detail explain of the step is appreciated. Thank you.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups