mysql -hxxx.xxx.xxx.xxx -Pxxxx -uxxx -pxxx -c
-c option when using the client, so that you can use advanced features.header("Content-Type:text/html;charset=utf-8");$host="10.10.10.10"; //Instance proxy_host_ip$user="test"; //Instance user$pwd="test"; //Instance password$db="aaa"; //Database name$port="15002"; //proxy_host port number$sqltool=new MySQLli($host,$user,$pwd,$db,$port);//Other necessary code$sqltool->close();echo "ok"."\\n";
private final String USERNAME = "test";private final String PASSWORD = "123456";private final String DRIVER = "com.mysql.jdbc.Driver";private final String URL = "jdbc:mysql://10.10.10.10:3306?userunicode=true&characterEncoding=utf8mb4";private Connection connection;private PreparedStatement pstmt;private ResultSet resultSet;
Feedback