CentOS MySQL Combat seventh session

Source: Internet
Author: User

CentOS MySQL Combat seventh session

MySQL Common error troubleshooting

1. Client Tools
Mysql
SQLyog
Mysqldump (Mysqlbinlog)

2. mysql Binlog introduction

MySQL command

Mysql
Command not Found
Environment variables
Echo $PATH

Using an absolute path to invoke
/usr/local/mysql/bin/mysql


===============================================
Ah Ming
Removing environment variables
\CP =/BIN/CP
\CP 2.txt eee/
# CD eee/
# LL
Total 4
-rw-r--r--1 root root 223 Apr 20:40 2.txt


MySQL prompt
prompt = ' (product) \[email protected]\h [\d]> '
Prompt modification takes effect
1, whether to read the correct my.cnf
My.cnf
2. Do you want to put it in [MySQL] section?
[Client]
[mysql],prompt = to be placed in [MySQL]


About MY.CNF
mysqld [Mysqld]
mysql [client] [MySQL] means [client]>[mysql]
MySQL is the client, mysqld is the server, client includes MySQL clients, also contains similar to mysqldump and Mysqlbinlog.
Mysqldump and Mysqlbinlog can only read the [Client] section

Wu Bingxi (82565387) 20:50:14
Two methods of executing MySQL command in shell
1, mysql-e "SQL"
2, echo "Select User from XX" |mysql
Cannot print out the execution time and warning

Three yards in Unity
\s
Server Characterset:utf8
Db Characterset:utf8
Client Characterset:utf8
Conn. Characterset:utf8

Wu Bingxi (82565387) 20:56:56
SQLyog
PhpMyAdmin
Navicat
MySQL Workbench

I only recommend two: SQLyog, MySQL Workbench

F

CentOS MySQL Combat seventh session

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.