Jump to content

[SOLVED] Connecting to something other than local host for mysql


blackcell

Recommended Posts

Hello,

I just realized all of my work has demanded me use a local mysql database. Now I need to connect to another database being served by the computer across the room from me.  I have tried using the IP address and even the pc name but no luck. Anybody know the trick?

I am getting:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'user'@'myComputer' (using password: YES) in X:\xampp\htdocs\ticket\run\parts_report.module.php on line 38
Cannot connect to database on otherComputer:

Link to comment
Share on other sites

It's a MySQL setting per user. phpMyAdmin is a tool to help manage MySQL

 

When adding a user to MySQL, the default is to only allow connections from localhost. You need to specify that the user can connect from anywhere, or at least a specific IP.

 

 

p.s. - this should be moved to the MySQL forum

Link to comment
Share on other sites

you have to allow the user you are logging in as, access from remote locations. In phpmyadmin just open up the mysql database then go to the users table. find the user you want remote access for and change the host to "%" without the quotes. You must be logged into phpmyadmin as root or someone who has rights to the table.

 

Either that or get some admin tools from the mysql site

 

http://dev.mysql.com/downloads/gui-tools/5.0.html

 

This will allow you to setup users and rights

 

Ray

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.