Since you have mysql on your local computer, you do not need to worry about the IP address of the device. Just use localhost:
mysql -u user -p
or
mysql -hlocalhost -u user -p
If you cannot log in with this, you must find out which usernames (user @host) exist locally in MySQL Server. Here is what you do:
Step 01) Starting mysql so that passwords do not require passwords and refuse TCP / IP connections
service mysql restart --skip-grant-tables --skip-networking
Keep in mind that standard SQL for adding users, granting and revoking privileges is disabled.
Step 02) Show Users and Hosts
select concat(''',user,'''@''',host,'''') userhost,password from mysql.user;
Step 03) Verify your password to make sure it works.
select user,host from mysql.user where password=password('YourMySQLPassword');
If your password does not display the result for this request, you have the wrong password.
If your password displays the result for this query, look at users and hosts. If your host value is "%", you should be able to connect from anywhere. If your host is "localhost", you can connect locally.
Create the user "root" @ "localhost".
Once you have done what you need, just restart mysql normally
service mysql restart
If you are successfully connecting to a macbook, run this query:
SELECT USER(),CURRENT_USER();
USER () reports how you tried to authenticate with MySQL
CURRENT_USER () tells how you were allowed to authenticate with MySQL
Let us know what will happen !!!
UPDATE 2012-02-13 20:47 EDT
Log in to the remote server and repeat step 1-3
See if any user allows remote access (ie the host in mysql.user is "%"). If you do not, add 'user' @ '%' to mysql.user.