01. Basic concepts of database and software installation

table of Contents

01. Basic concepts of database and software installation

Basic concepts of database

MySQL database software


01. Basic concepts of database and software installation

Basic concepts of database

1. English words of database: DataBase Abbreviation: DB
2. What database?
    Warehouse for storing and managing data.

3. The characteristics of the database:
    1. Persistent storage of data. In fact, the database is a file system
    2. It is convenient to store and manage data
    3. Use a unified way to operate the database-SQL

MySQL database software

1. Installation

2. Uninstall
    1. Go to the MySQL installation directory and find the my.ini file
        * Copy datadir="C:/ProgramData/MySQL/MySQL Server 5.5/Data/"
    2. Uninstall MySQL
    3. Delete the MySQL file in the C:/ProgramData directory folder.
    
3. Configure
    * MySQL service start
        1. Manually.
        2. cmd--> services.msc to open the service window
        3. Use the administrator to open cmd
            * net start mysql: start mysql service
            * net stop mysql: close mysql service
    * MySQL login
        1. mysql -uroot -p password
        2. mysql -hip -uroot -p Connection target password
        3. mysql --host=ip --user=root --password=Connection target password
    * MySQL exit
        1. exit
        2. quit

    * MySQL directory structure
        1. MySQL installation directory: basedir="D:/develop/MySQL/"
            * Configuration file my.ini
        2. MySQL data directory: datadir="C:/ProgramData/MySQL/MySQL Server 5.5/Data/"
            * Several concepts
                * Database: Folder
                * Table: File
                * Data: Data

Guess you like

Origin blog.csdn.net/qq_43629083/article/details/109005180