Results 1 to 4 of 4
-
21st Jun 2012, 07:20 AM #1OPMember
How to enable remote connection to MySQL server ?
I followed this :
1. Edit /etc/sysconfig/iptables file:
nano -w /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
service iptables restart
mysql -h dbserver_name_or_ip_address -u webdb_user -p webdb
?kdkkd??ddkd?kd?kdkkd?kkdkd?kd?kd?kd?kd?kd?kd?kd?k d?kd?kd?kd?kd?kd?kd?kd?kd?kd?kd?kd?kd?kd?kd?kd?kd? kd?kd?kd?kd?k$
^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text ^T To Spell
Noobish question.
What is the use of enabling remote connection to MySQL server ?
I had set "Disallow root login remotely? [Y/n] Y" in MySQL Secure Installation.
What to do now. Please help.jasoothai Reviewed by jasoothai on . How to enable remote connection to MySQL server I followed this : 1. Edit /etc/sysconfig/iptables file: 2. Add following line before COMMIT: 3. Restart Iptables Firewall: 4. Test remote connection: But when executing first command I got like this : Where is the commit line ? :( Rating: 5
-
22nd Jun 2012, 07:51 PM #2Member
Hi,
This is because that character set issue.
You don't need to open MySQL remote connection, its just the purpose of to allow Your MySQL server to connect with any remote connection e.g for example I can use your MySQL database on to any website on different server or to connect with it.
due to security reasons most of companies use localhost as MySQL preferred host address.
-
23rd Jun 2012, 07:54 AM #3OPMember
Thanks for the clarification.
-
25th Jun 2012, 06:08 PM #4Member
Just if others end up on this thread looking to activate remote mysql connections, here is what you have to do:
There is no need to edit the /etc/sysconfig/iptables file, you can directly execute the iptables command on the server and save iptables to make the rule permanent.
iptables -A INPUT -p tcp --dport 3306 -j ACCEPT
service iptables save
Once done, you have to grant necessary privileges to the database user and the remote IP on the Mysql user using the Grant command. The following tutorial will guide you on how enable remote access to the mysql server/database.Linux System Administrator
Server Management at affordable cost.
linuxhostingsupport.net | MSN:madaboutlinux@hotmail.com
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
How to enable RDP on windows server?
By MediaStar in forum Server ManagementReplies: 3Last Post: 3rd May 2012, 01:14 PM -
ODBC connection error for fetching value from MSsql to MYsql
By dhruvpandit in forum Technical Help Desk SupportReplies: 0Last Post: 9th Feb 2012, 10:23 AM -
Help regarding remote desktop connection
By killeramy in forum Webmasters, Money MakingReplies: 1Last Post: 17th Dec 2011, 02:41 PM -
[DLE] Where does it keep MySQL connection details (user, pass, db) ?
By ThumperTM in forum DLEReplies: 2Last Post: 7th Sep 2011, 03:14 PM -
Increase mysql connection settings
By Storming in forum Technical and Security TutorialsReplies: 0Last Post: 18th Dec 2009, 12:24 AM
themaCreator - create posts from...
Version 3.24 released. Open older version (or...