Tag:Library name

  • For PHP to go friends recommend a artifact


    Friends who know PHP should be impressed by two features of PHP:1. Powerful array;2. Powerful function library.Most data can be represented by an array;Similarly, most functions can be done with one function. For example, Java calculates the MD5 of a string import java.math.BigInteger; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class MD5Utils { public static String stringToMD5(String […]

  • Using DDL command in MySQL: rename table to quickly modify the database name (schema)


    Demand background In some cases, we want to modify the schema of a database, but there is no existing statement. If we create a new schema and import the data, the operation will be very slow in the case of large amount of data. At this time, we can use the rename table command to […]

  • 1. Common operation commands of MySQL


    #1. CMD login MySQL command #(1) You need to enter the password C:\Users\Administrator>mysql -h localhost -P3306 -u root -p Enter password: ******** #(2) Note that there is no space between – P and password, – P for Port – P for password C:\Users\Administrator>mysql -h localhost -P 3306 -u root -p123456789 #Local database, IP address and […]

  • Quartz.net Holes in configuration file


    Let’s talk about the configuration here Quartz.netHole in profile 1、quartz_ jobs.xml Configure nodes in Key value Value value ———-When configuring in the value here, you should pay attention not to appear%, &? Wait for special characters, or your job won’t work 2. If your Quartz.net It is independent and deployed to the server. Each update […]

  • MySQL common instructions


    MySQL related instructions: database collation: commonly used utf8_ general_ Ci 1cmd connection database: 1. Version view: mysqladmin — version 2. Connect root: MySQL – u root – P, and enter the password/Exit Ctrl + C or quit  2 query database: show databases; 3 query data table: show tables; 4. Create database: create database name; 5. […]

  • Django project Linux remote deployment record


    Django project Linux remote deployment record DjangoProject deployment. The name of the project isshop-search, the configuration port number is9000The following is the configuration process record. <!– more –> Remote copy project files scp -r ~/Source/Project/Python/shop-search [email protected]:/source/python/deployment/ Remote account login ssh [email protected] Note: it is best not to use therootUser deployment.rootIf the authority is too high, […]

  • Mongodb backup and restore


    Mongodb backup Log in to the source database server to run:–Here is my environment cd /db/backup/mongo/ sh mongo_backup.sh mongo_backup.sh: cd /db/backup/mongo #Library name db=dataBase_name #User name username=userName #Password password=password #Perform a backup /db/mongodb/bin/mongodump –port 27017 -d $db -o ./$db”_”$(date +%y%m%d%H) -u $username -p $password #Zip the backup SQL zip -r $db”_”$(date +%y%m%d%H)”.zip” ./$db”_”$(date +%y%m%d%H) #Delete […]

  • Network security from entry to mastery (Chapter 4-2) get & Post & head injection


    Content of this article: GET injection POST injection Head injection Sqlmap tool injection Get & post is error injection: Head is error injection: 1. Get injection: Get injection belongs to explicit error injection. 1. Determine the injection point: The oldest method is: The http://www.xxx.com/new.php? Id = 1 and 1 = 1 page displays normally. The […]

  • The method of modifying character set of MySQL database with SQL statement


    The method of modifying character set of MySQL database with SQL statement   Modify Library: alter database [$database] character set [$character_set] collate [$collation_name] Note:[$database] is the database name of the database.[$character_set] is the character set name.[$collation [name] is the collation name.eg:alter database dbsdq character set utf8mb4 collate utf8mb4_unicode_ci;   Alter table: alter table [$table] convert […]

  • Using mybatis generator to automatically generate mybatis code in IntelliJ idea


    1. Idea creates Maven project (omitted) 2. Add mybatis generator Maven plugin plug-in and MySQL database driver dependency in pom.xml of Maven project <build> <plugins> <plugin> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId> <version>1.3.5</version> <configuration> <verbose>true</verbose> <overwrite>true</overwrite> </configuration> </plugin> </plugins> </build> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.34</version> </dependency> 3. Create a configuration file named generatorconfig.xml under the Src / main / resources […]

  • Experiment simple SQL injection 1, simple SQL injection


    Follow the blog above. Experiment simple SQL injection 1 Topic link: http://ctf5.shiyanbar.com/423/web/   Similarly, enter 1 directly with quotation marks, and an error will be returned below the result, there is a mistake, so it’s estimated that it should be closed here, character line injection, but this title, what exactly is filtered, at present I […]

  • Using cocoapods to configure IOS Baidu map SDK problem record 20191024


    1. Add a library name to podfile pod ‘BaiduMapKit’ #Baidu map SDK 2. Install Baidu map pod install Problems: [!] Error installing BaiduMapKit [!] /usr/local/bin/git clone https://github.com/BaiduLBS/BaiduMapKit.git /var/folders/66/cn9r2_js64116n5r3rjcv3qm0000gn/T/d20191024-3181-1lhmczd –template= –single-branch –depth 1 –branch 5.0.0   Cloning into ‘/var/folders/66/cn9r2_js64116n5r3rjcv3qm0000gn/T/d20191024-3181-1lhmczd’… error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54 fatal: the remote end hung up unexpectedly […]