LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-30-2014, 02:30 AM   #1
Bhanu999
LQ Newbie
 
Registered: Jun 2013
Location: India
Posts: 27

Rep: Reputation: Disabled
Unhappy Unable to connect to remote mysql server in Ubuntu


Hi everyone.
I have a problem in connecting to mysql database on the remote server.
I've issued the following command to connect to the remote server

mysql -h xyz.com(remote hostname) -u username -ppassword

and I'm getting the following error

ERROR 2003 (HY000): Can't connect to MySQL server on 'xyz.com' (111)

here is my my.cnf file

Code:
[client]
port            = 3306
socket          = /var/run/mysqld/mysqld.sock
[mysqld_safe]
socket          = /var/run/mysqld/mysqld.sock
nice            = 0

[mysqld]
user            = mysql
pid-file        = /var/run/mysqld/mysqld.pid
socket          = /var/run/mysqld/mysqld.sock
port            = 3306
basedir         = /usr
datadir         = /var/lib/mysql
tmpdir          = /tmp
lc-messages-dir = /usr/share/mysql


#skip-external-locking
#bind-address           = 127.0.0.1


key_buffer              = 16M
max_allowed_packet      = 16M
thread_stack            = 192K
thread_cache_size       = 8
myisam-recover         = BACKUP
query_cache_limit       = 1M
query_cache_size        = 16M
log_error = /var/log/mysql/error.log
expire_logs_days        = 10
max_binlog_size         = 100M

[mysqldump]
quick
quote-names
max_allowed_packet      = 16M

[mysql]
[isamchk]
key_buffer              = 16M
!includedir /etc/mysql/conf.d/
please help me and thanks in advance.

OS: xubuntu-14.04
 
Old 11-30-2014, 09:12 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Did you grant this remote access in the database on the remote server?
See http://dev.mysql.com/doc/refman/5.1/en/grant.html
 
Old 12-10-2014, 08:37 PM   #3
Bhanu999
LQ Newbie
 
Registered: Jun 2013
Location: India
Posts: 27

Original Poster
Rep: Reputation: Disabled
Ya I have granted remote access in the database on the remote server, but i am not able to connect to it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to connect MS SQL server 2008 Remote Server through SQUID proxy server samank75 Linux - Server 5 01-19-2012 10:19 PM
Remote Connect To Mysql Server pau_kacang Slackware 4 07-01-2010 01:00 PM
Unable to connect Mysql through Hibernate on ubuntu server Amit Puranik Linux - Newbie 1 02-13-2010 09:06 AM
unable to connect to remote server smrutijena Linux - Networking 5 07-28-2009 02:05 AM
Unable to connect to remote server Suresh Chowta Linux - Networking 1 02-13-2005 07:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration