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 directoryServer
mysqldClient
mysqlStart 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 administratorwindows + 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
- Skip authentication user name and password to start the server
mysqld --skip-grant-tables start the server to skip the grant tables - Modify the administrator password corresponding to the user
update mysql.user set password = password (123 ) where user = 'root' and host = 'localhost'; - Close the current server by way of re-validate the user name password to start
- Normal username and password in a way connected to mysql server
1.4 configuration files
- \ s View mysql server simple configuration
suffix configuration files are usually ini end - 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 - Need to first stop the server is restarted after changing the configuration file to take effect
- 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 directoryServer
mysqldClient
mysqlStart 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 administratorwindows + 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
- Skip authentication user name and password to start the server
mysqld --skip-grant-tables start the server to skip the grant tables - Modify the administrator password corresponding to the user
update mysql.user set password = password (123 ) where user = 'root' and host = 'localhost'; - Close the current server by way of re-validate the user name password to start
- Normal username and password in a way connected to mysql server
1.4 configuration files
- \ s View mysql server simple configuration
suffix configuration files are usually ini end - 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 - Need to first stop the server is restarted after changing the configuration file to take effect
- Modify the configuration file must restart the server