- Login : either linux or windows need to reach under the bin file mysql installation directory folder. Targeting Thereafter, the command interpreter mysql -uroot -p:. -U is meant username, user name is the value of the root, -p without a password, the next input. Do not show.
- Under linux open, close and restart
- ON:
- Start using the service: service mysql start
- Use mysqld script to start: /etc/inint.d/mysql start
- Use safe_mysqld start: safe_mysql &
- shut down:
- Use the service shut down: service mysql stop
- Use mysqld script to start: /etc/inint.d/mysql stop
- mysqladmin shutdown
- Restart:
- Use the service to restart: service mysql restart
- Use mysqld script to start: /etc/inint.d/mysql restart
- status:
- Mysql using the service to view the status of the service is closed or open: service mysqld status
- ON:
- Remote connections MySQL :
- The reason: linux when no visual interface, the operation of the database is more trouble. So, start remote connectivity tools is a good choice.
- Version: mysql8 different from previous versions of password encryption.
- Error: navicat connection mysql appeared Client does not support authentication protocol requested by server
- solve:
- method one:
- Into the mysql database
- UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd')
- ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL ERROR 1062 (23000): Duplicate entry '%-root' for key 'PRIMARY'
- 错误处理:ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your_password';
- Executing a complete: ERROR 1062 (23000): Duplicate entry '% -root' for key 'PRIMARY' need to deal with the error
- FLUSH PRIVILEGES; refresh
- Second way: feeling too much trouble, directly modify a fine.
- method one:
- These specific operating table, I do not want to remember.
MySQL under linux restart switch state. Mysql remote connectivity
Guess you like
Origin blog.csdn.net/m0_37626203/article/details/93479615
Ranking