官术网_书友最值得收藏!

MySQL

The second service that we will discuss is MySQL. It is a relational database system. MySQL is often used with the PHP programming language and an Apache web server to create a dynamic, web-based application. For the penetration testing process, you can use MySQL to store your penetration testing results, for example, the vulnerability information and network mapping result. Of course, you need to use the application to store those results.

To start the MySQL service in Kali Linux, you can perform the following steps:

  1. In a Terminal window, type the following:
    service mysql start
  1. To test whether your MySQL has already started, you can use the MySQL client to connect to the server. We define the username (root) and the password to log in to the MySQL server:
    mysql -u root

The system will respond with the following:

    Enter password:
    Welcome to the MySQL monitor. Commands end with ; or g.
    Your MySQL connection id is 39
    Server version: 5.5.44-1 (Debian)
    Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
    
    Oracle is a registered trademark of Oracle Corporation and/or its
    affiliates. Other names may be trademarks of their respective
    owners.
    
    Type ''help;'' or ''h'' for help. Type ''c'' to clear the current input statement.
    mysql>
  
  1. After this MySQL prompt, you can provide any SQL commands. To exit from MySQL, just type quit.
By default, for security reasons, the MySQL service in Kali Linux can be accessed only from a local machine. You can change this configuration by editing the bind-address stanza in the MySQL configuration file located in /etc/mysql/my.cnf. We don't recommend that you change this behavior unless you want your MySQL to be accessed from elsewhere.

To stop the MySQL service, you can perform the following steps:

  1. In a Terminal window, type the following:
    service mysql stop
  1. To start the MySQL service automatically after Kali Linux boots up, you can give the following command:
    update-rc.d mysql defaults

This command will make the MySQL service start after the boot up.

主站蜘蛛池模板: 祁东县| 奉贤区| 建昌县| 平凉市| 绥阳县| 江北区| 谷城县| 报价| 辉南县| 阿勒泰市| 莆田市| 印江| 舒兰市| 江津市| 伊宁市| 交口县| 屯门区| 嘉祥县| 湘乡市| 新丰县| 平武县| 聂荣县| 康定县| 芒康县| 南澳县| 曲松县| 柳州市| 伊川县| 临清市| 左云县| 阿合奇县| 滕州市| 新绛县| 建水县| 莱西市| 安阳市| 东平县| 阳谷县| 大丰市| 长沙市| 轮台县|