Tags: DMI arch hive nis com root down start addMySQL Community Server 5.5.56 ZIP Archive Green Decompression window installation steps First of all Get ready to start the configuration file My.ini [Mysqld]
#设置字符集为utf8
loose-default-character-set = UTF8
basedir = f:/ide/mysql5.5
DataDir = F:/ide/mysql5.5/data
[client]
#设置客户端字符集
loose-default-character-set = UTF8
[winmysqladmin]
Server = f:/ide/ Mysql5.
(exception ex ){
System. Out. println (ex. getmessage ());
}
}
/**
*
* @ Param zipfilename ZIP file name
* @ Param outputdirectory: output directory
* @ Return array (two elements). The first table indicates the unzipping flag, and the second is the message.
* @ Throws exception
*/
Public String [] unzip (string zipfilename, string outputdirectory ){
String [] sreturn = new string [2];
Boolean readflag = false; // read the file ID to p
C # zip compression and decompression help class Encapsulation
After a classmate asked this question, he looked at the encapsulation of other garden friends in the garden, which was fragmented and not convenient to call. So I encapsulated a zip decompressed class. Later, I want to sort it out for fear that I forgot it. The compressed classes are also encapsulate
I use the more reliable, also relatively simple, where archiver is very powerful, support ZIP format tar format, only need to provide a path to compress the existing folder.Compression:1 varFS = require (' FS ');2 varArchiver = require (' archiver '));3 4 varOutput = Fs.createwritestream (' Archiver-unzip.zip ');5 varArchive = archiver (' Zip ');6 7Archive.on (' Error ',function(err) {8 Throwerr;9 });Te
There are many ways to compress files, most commonly using util tools and ant tools. The difference is that the Util tool cannot set the encoding format of the file, and the Ant tool can customize the file encoding.
The following is compressed and decompressed via the Ant tool
1. First look at the compression process, directly look at the code: Ziputil.
In t
You can decompress the zip files that contain subdirectories.
/*** Decompression function. * decompress the zipFile file to the folderPath directory. * @ throws Exception */public int upZipFile (File zipFile, String folderPath) throws ZipException, IOException {// public static void upZipFile () throws Exception {ZipFile zfile = new ZipFile (zipFile); Enumeration zList = zfile. entries (); ZipEntry ze = nul
Apache ant has a package dedicated to processing ZIP files. You can specify the file name encoding method. This can solve the problem.
For example, use org.apache.tools.zip.zipoutputstreamto replace java.util.zip. zipoutputstream.
Java uses Unicode as the basis for text encoding. Therefore, if zipinputstream and zipoutputstream are used to compress and decompress data, it must be UNICODE when it comes to the Chinese document name or path. However, the
Win64 bit:http://dev.mysql.com/downloads/file.php?id=456319Unzip after download is completeConfiguring Environment variablesAfter path, add MySQL after decompression bin folder location such as D:\Program Files\mysql-5.6.24\mysql-5.6.24-winx64\binConfigure My-default.ini# basedir = D:\Program files\mysql-5.6.24\mysql-5.6.24-winx64# DataDir = D:\Program Files\mysql-5.6.24\mysql-5.6.24-winx64\dataInstallation ServicesOpen cmd as administrator enter the
authentication_string,5.7 previously passwordD. Change the root passwordUpdate user Set authentication_string = password (' 123456 ') where user = ' root ';(updating the username root password is 123456)flush privileges; (Refresh the System permissions related table, note: If you do not execute the command only modifies the authentication_string in the user table, the login password will not change )
Third, open remote access
Querying user HostHost is localhost to allow only local
attributes.-Y saves the symbolic connection directly, not the file that the connection points to, and this parameter is only valid under systems such as UNIX.-Z adds a comment to the compressed file.-$ Save the volume book name of the disk where the first compressed file is located.-
Linux Unzip command detailedFunction Description: Unzip the zip fileSyntax: Unzip [-cflptuvz][-agcjlmnoqsvx][-p Additional note: Unzip is the unzip program for.
This article mainly introduces the PHP decompression zip file function, interested in the friend's reference, I hope to be helpful to everyone.
The code is as follows:
Summary: The above is the entire content of this article, I hope to be able to help you learn.
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.