You can use terminal to log on to linuxmysql. the reason for Port 3306 being disabled is bitsCN.com.
Linux suse11 can log on to terminal to perform various operations normally. jdbc web program running on tomcat has an exception:
Com. mysql. jdbc.
Mysql opens remote port 15.04 and port 3306 in ubuntu 15.043306.
Ubuntu 15.04 opens mysql remote port 3306. All of the following operations are performed in the terminal.
First, check whether netstat-an | grep 3306 is enabled on the port.
This
In linux, mysql enables remote access and opens port 3306 through the firewall.
Enable mysql Remote Access Permissions
By default, mysql users do not have the permission for remote access. Therefore, when the program is not on the same server as the
In linux, mysql enables the remote access permission firewall to open port 3306 and mysql3306.
Enable mysql Remote Access Permissions
By default, mysql users do not have the permission for remote access. Therefore, when the program is not on the
All operations on this computer are normal after the MySQL server is installed, but the MySQL server is not connected remotely on other machines. shit!Suspect is a port problem, the result:Telnet 192.168.1.245 3306The connection was not found, so
By default, mysql users do not have the permission to remotely access mysql. Therefore, when the program is not on the same server as the database, we need to enable the remote access permission of mysql. There are two mainstream methods: table
Set up the second mysql instance bitsCN.com with Port 3306 in the case of the mysqld service.
Create a mysql instance with the second port 3306 in the case of the original port 3308 mysqld service
1 download the tar.gz [root @ 472322 tmp] #
In Linux, you may encounter minor problems when configuring the firewall to enable port 80 and port 3306.Zookeeper
Vi/etc/sysconfig/iptables
-A input-m state-state NEW-m tcp-p tcp-dport 80-j ACCEPT (allow port 80 to pass the firewall)-A input-m
The default selinux configuration of RHEL5.1 only allows the MySQL Server to listen on port 3306. To enable MySQL to listen on other ports, you need to use the semanage command to set the listening permission for the MySQL Server.
The following
Turn on MySQL remote access permissionThe default MySQL user does not have remote access permission, so when the program is not on the same server as the database, we need to turn on MySQL remote access.There are two main ways to change the table
Turn on MySQL remote access permissionThe default MySQL user does not have remote access permission, so when the program is not on the same server as the database, we need to turn on MySQL remote access.There are two main ways to change the table
VI/etc/sysconfig/iptables-A input-M State-State new-m tcp-p tcp-dport 80-J accept (allow port 80 to pass the firewall)-A input-M State-State new-m tcp-p tcp-dport 3306-J accept (allow port 3306 to pass the firewall)Note:Many users add these two
This is because you want to use Navicat to connect to the database and find that the connection is notBy looking at a lot of data and testing multiple times to find out because the firewall is not configured with Port 3306Words don't say, open the
I think many of my friends have encountered the problem that the mysql server suddenly stops or starts automatically. Let's analyze the cause and solution to the problem;
Cause 1: the automatic backup function of Mysql may cause the database to shut
Analysis reason one: MySQL's automatic backup function may cause the database to shut down the service before the backup, but when this starts the server does not respond,
Start-run-services.msc, open Windows service to find MySQL services and
The firewall rule file is in:/Etc/sysconfig/iptablesOpen the configuration file through viAdd two lines to the table:-A input-m state-state NEW-m tcp-p tcp-dport 80-j ACCEPT-A input-m state-state NEW-m tcp-p tcp-dport 3306-j ACCEPTThe result is as
The firewall rule file is in:/Etc/sysconfig/iptablesOpen the configuration file through viAdd two lines to the table:-A input-m state-state NEW-m tcp-p tcp-dport 80-j ACCEPT-A input-m state-state NEW-m tcp-p tcp-dport 3306-j ACCEPTThe result is as
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.