Mysql versions installed in yum mode are relatively old. For more information about wget installation, see installing mysql in mysql using yum mode, use the wget method to install reference http://blog.csdn.net/jom_ch/article/details/21173121 problems after installation is successful use navicat remote connection appears
Error 1045, 11301. configure iptables to view rules iptables-L-n preset rules [root @ tp ~] # Iptables-p input drop [root @ tp ~] # Iptables-p output accept [root @ tp ~] # Iptables-p forward drop add rule [root @ tp ~] # Iptables-a input-p tcp -- dport 22-j ACCEPT [root @ tp ~] # Iptables-a input-p tcp -- dport 3306-j ACCEPT storage rule [root @ tp ~] #/Etc/rc. d/init. d/iptables save to write it to the/etc/sysconfig/iptables file. after writing, remember to repeat the firewall to make it work. [root @ tp ~] # Service iptables restart2. Set logon user viewing permissions
Mysql> use mysql; mysql> select host, user from user;
1. Change the table. It may be that your account is not allowed to log on remotely, but only on localhost. At this time, you only need to log in to mysql on the computer of localhost, and change the "host" entry in the "user" table in the "mysql" database to "%" from "localhost"
Mysql-u root-pvmwaremysql> usemysql; mysql> update user set host = '%' where user = 'root'; mysql> select host, user from user;
2. authorization method. For example, if you want myuser to use mypassword to connect to the mysql server from any host.
Grant all privileges on *. * to identified by 'mypassword' withgrant option;
If you want to allow myuser to connect to the mysql server from a host whose ip address is 192.168.1.3, and use mypassword as the password
Grant all privileges on *. * to identified by 'mypassword' with grant option; finally, run
Mysql>flush privileges: //------------------------------------------------------------------------------------------------------------------------------------------- JDK Problem When wget is used for download and installation, the system prompts that no file is printed. a piece of html code is displayed. Only html files are downloaded. the file viewing type is used. Oracle does not support direct wget Download. Therefore, you must log on to Oracle and then download The path is similar to: wget http://download.oracle.com/otn/java/jdk/6u24-b07/jdk-6u24-linux-x64-rpm.bin? AuthParam = 1385783783_45477c6a7a351ed9cd98ff23b26ceb7dDownload the rpm Package and rename it ** rpm. bin modify permission chmod 777 *** after installation add environment variable vi/etc/profile add export JAVA_HOME =/usr/java/jdk1.7.0 _ 67
Export CLASSPATH =.: $ JAVA_HOME/jre/lib/rt. jar: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar
Export PATH = $ PATH: $ JAVA_HOME/bin download Tomcat from the official website. [root @ admin local] # cd/usr/local
[Root @ admin local] # tar-zxv-f apache-tomcat-7.0.29.tar.gz // Unzip the package
[Root @ admin local] # rm-rf apache-tomcat-7.0.29.tar.gz // delete compressed package
[Root @ admin local] # mv apache-tomcat-7.0.29 tomcat
Run bin/startup. sh in the extracted file to start the server.Problem prompt startup. sh no command find because no environment variable is configured add CATALINA_HOME =/opt/apache-tomcat-7.0.29 under etc/profile (my path)
CATALINA_BASH =/opt/apache-tomcat-7.0.29 1) change connector encoding to UTF-8
In the configuration file conf/server. xml,
ConnectionTimeout = "20000"
URIEncoding = "UTF-8"
RedirectPort = "8443" type = "regxph" text = "yourobjectname"/>