mysql-02mysql mounted installation mysql-02mysql

install mysql-02mysql

 

Here it is about the window version of the ...

Dian IT industry is a iron

Do not try the latest version of the software in the IT industry

Two Dian Mysql installation process

1.1 download and install

  • After the download is the MySQL server and client download down
    decompression
    view the file directory

    Server
    mysqld

    Client
    mysql

    Start mysqld
    1. Switch to the bin directory
    2. Run the mysqld
    PS: do pre-configured MySQL when the terminal is recommended that you run as administrator

    windows + r to start an ordinary user

  • mysql during the initial landing was not directly enter the password

  • mysql sql statement is a semicolon does not knock you completely do not enter a semicolon default
    client will let you continue typing

  • Client landing
    mysql -h 127.0.0.1 -P 3306 -uroot -p
    can be abbreviated
    mysql -uroot -p

  • If you do not enter a user name and password by default is landed guest mode function can be used rarely

  • The client logout
    Exit;
    quit;

  • View all databases
    show databases;

  • View a process
    tasklist | findstr name

  • Kill the process
    taskkill / F / PID process ID

  • Production environment variable
    path where the file will start to add to the system's environment variables
    Note: Once you've configured a while to restart the mysql server and terminal cmd

  • Mysqld will be made into a system service
    to make your system service must be the administrator cmd terminal

  • mysqld --install

1.2 Change Password

Without a password
mysqladmin -uroot -p password 123
the password case
mysqladmin -uroot -p123 password 123456

When the error command input can be used when \ c cancel the previous command cancel

1.3 crack passwords

It has now launched the server stopped

  1. Skip authentication user name and password to start the server
    mysqld --skip-grant-tables start the server to skip the grant tables
  2. Modify the administrator password corresponding to the user
    update mysql.user set password = password (123 ) where user = 'root' and host = 'localhost';
  3. Close the current server by way of re-validate the user name password to start
  4. Normal username and password in a way connected to mysql server

1.4 configuration files

  1. \ s View mysql server simple configuration
    suffix configuration files are usually ini end
  2. mysql do not modify the configuration file that comes with
    it you can create a configuration file my.ini
    mysql server will automatically load the configuration in your configuration file in the startup my.ini
  3. Need to first stop the server is restarted after changing the configuration file to take effect
  4. Modify the configuration file must restart the server

Here it is about the window version of the ...

Dian IT industry is a iron

Do not try the latest version of the software in the IT industry

Two Dian Mysql installation process

1.1 download and install

  • After the download is the MySQL server and client download down
    decompression
    view the file directory

    Server
    mysqld

    Client
    mysql

    Start mysqld
    1. Switch to the bin directory
    2. Run the mysqld
    PS: do pre-configured MySQL when the terminal is recommended that you run as administrator

    windows + r to start an ordinary user

  • mysql during the initial landing was not directly enter the password

  • mysql sql statement is a semicolon does not knock you completely do not enter a semicolon default
    client will let you continue typing

  • Client landing
    mysql -h 127.0.0.1 -P 3306 -uroot -p
    can be abbreviated
    mysql -uroot -p

  • If you do not enter a user name and password by default is landed guest mode function can be used rarely

  • The client logout
    Exit;
    quit;

  • View all databases
    show databases;

  • View a process
    tasklist | findstr name

  • Kill the process
    taskkill / F / PID process ID

  • Production environment variable
    path where the file will start to add to the system's environment variables
    Note: Once you've configured a while to restart the mysql server and terminal cmd

  • Mysqld will be made into a system service
    to make your system service must be the administrator cmd terminal

  • mysqld --install

1.2 Change Password

Without a password
mysqladmin -uroot -p password 123
the password case
mysqladmin -uroot -p123 password 123456

When the error command input can be used when \ c cancel the previous command cancel

1.3 crack passwords

It has now launched the server stopped

  1. Skip authentication user name and password to start the server
    mysqld --skip-grant-tables start the server to skip the grant tables
  2. Modify the administrator password corresponding to the user
    update mysql.user set password = password (123 ) where user = 'root' and host = 'localhost';
  3. Close the current server by way of re-validate the user name password to start
  4. Normal username and password in a way connected to mysql server

1.4 configuration files

  1. \ s View mysql server simple configuration
    suffix configuration files are usually ini end
  2. mysql do not modify the configuration file that comes with
    it you can create a configuration file my.ini
    mysql server will automatically load the configuration in your configuration file in the startup my.ini
  3. Need to first stop the server is restarted after changing the configuration file to take effect
  4. Modify the configuration file must restart the server

Guess you like

Origin www.cnblogs.com/dssd991/p/11723770.html