LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-03-2007, 04:18 AM   #1
pau_kacang
Member
 
Registered: May 2005
Location: Malaysia
Posts: 33

Rep: Reputation: 15
Remote Connect To Mysql Server


hello,

i'm fr malaysia. i'm using slackware 11.0 as my mysql server. until today i already 2 weeks study how to connect mysql server in my lan. i tried to telnet mysql server on port 3306 but can't. when i run this command fr client here the result.

nmap -v 192.168.1.5

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2007-05-03 17:11 MYT
Initiating ARP Ping Scan against 192.168.1.5 [1 port] at 17:11
The ARP Ping Scan took 0.00s to scan 1 total hosts.
Initiating SYN Stealth Scan against testing.techmedia.com.my (192.168.1.5) [1680 ports] at 17:11
Discovered open port 22/tcp on 192.168.1.5
Discovered open port 113/tcp on 192.168.1.5
Discovered open port 37/tcp on 192.168.1.5
Discovered open port 3306/tcp on 192.168.1.5
Discovered open port 6000/tcp on 192.168.1.5
The SYN Stealth Scan took 0.10s to scan 1680 total ports.
Host testing.techmedia.com.my (192.168.1.5) appears to be up ... good.
Interesting ports on testing.techmedia.com.my (192.168.1.5):
Not shown: 1675 closed ports
PORT STATE SERVICE
22/tcp open ssh
37/tcp open time
113/tcp open auth
3306/tcp open mysql
6000/tcp open X11
MAC Address: 00:17:9A:3A:13:58 (D-Link)

i tried telnet from mysql server itself n here the result

root@test:~# telnet 192.168.1.5 3306
Trying 192.168.1.5...
Connected to 192.168.1.5.
Escape character is '^]'.
5
5.0.24ape-Lv0+%,uA#+O+(%#}p:Connection closed by foreign host.
root@test:~#

when i tried telnet fr client here the result

telnet 192.168.1.5 3306
Trying 192.168.1.5...
Connected to 192.168.1.5.
Escape character is '^]'.
DHost '192.168.1.1' is not allowed to connect to this MySQL serverConnection closed by foreign host.

here my mysql server startup command

usr/bin/mysqld_safe --bind-address="0.0.0.0" --datadir=/var/lib/mysql --pid-file=/var/run/mysql/mysql.pid $SKIP &

CAN ANYBODY GUIDE ME HOW TO CONNECT MYSQL SERVER
 
Old 05-03-2007, 05:10 AM   #2
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
uncomment the line SKIP="--skip-networking"
 
Old 05-06-2007, 10:39 AM   #3
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
and also make sure that the host column doesn't contain localhost or you will never be able to connect to that host
 
Old 07-01-2010, 10:05 AM   #4
kinclong2
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by erklaerbaer View Post
uncomment the line SKIP="--skip-networking"
It means put sharp sign # in the front of variable SKIP in file /etc/rc.d/rc.mysqld. See line 32 of the script for Slackware64 13.1.
 
Old 07-01-2010, 12:00 PM   #5
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Why not simply connect with this line
Code:
mysql -h 192.168.1.5 -u your_user -p
from the Lan. You will well need to set this user and host up on the server first to allow access. it should then just work. Have a look at the Mysql manuals if unsure.

Last edited by bgeddy; 07-01-2010 at 12:11 PM.
 
  


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
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 02:13 PM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 07:19 AM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. suziecorbett Linux - Software 8 10-09-2008 01:52 AM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) sunlinux Linux - Software 1 11-07-2006 12:08 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:40 PM.

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