command Terminator is, and display the execution result in a vertical bar (it looks intuitive ).
\ Q: Exit mysql
\! Shell command: execute shell command \ in mysql \! Ll/root // view the price information under root.
⑤ Server commands
Mysqladmin-uroot-h localhost password 'redhat' // The password option changes the user password.
Mysqladmin version // view the mysql running status and version information.
cautious about keeping this right within a certain range. You can only read files that anyone can read. The file you are writing must not be an existing file, which prevents you from forcing the server to rewrite important files, such as/etc/passwd or data directories belonging to other people's databases.
If you authorize file permissions, make sure that you do not run the server as root for UNIX because root can create new files anywhere on the file system. If you run a server as an unprivile
to the server and draw them into an image. This allows you to observe the working status of mysql. Generally, you need to obtain the following status variables:
Com_update: number of updates executed by mysql
Com_select: number of queries executed by mysql
Com_insert: Number of inserts executed by mysql
Com_delete: number of deleted tasks
Com_rollback: Number of rollback operations
Bytes_received: Number of bytes accepted
Bytes_sent: Number of bytes sent
location of error logs can be set using the log-error option. Add the log-error option to the [mysqld] group of my. ini or my. CNF file. The format is as follows:
# My. CNF (in Linux) or my. ini (in Windows)
[Mysqld]
Log-error = DIR/[filename]
17.3.2. View error logs
Text editing/Viewer
17.3.3 delete error logs
In the MySQL database, you can use the mysqladmin command to enable new error logs. The syntax of the m
-0.i386.rpm MySQL-client-5.1.7-0.i386.rpm
Reminder:If the followingError: Failed dependencies:Perl (DBI) is needed by MySQL-server-5.1.16-0.glibc23.i386Please useInstall Yum install Perl-DBI. Of course, you need to try different releases.
The following information is displayed.Warning: MySQL-server-5.1.7-0.i386.rpm
Signature: nokey, key ID 5072e1f5
Preparing... ######################################## ### [100%]1: mysql-server ##################################### ###### [100%]...... (Omitt
Label: [[Email protected] Client zabbix]# grep-v "^$" etc/zabbix_agentd.conf|grep-v "^#"
Logfile=/tmp/zabbix_agentd.log
server=127.0.0.1,zabbix_server_ip
serveractive=zabbix_server_ip:10051# Note that the port number
hostname=113.86.103.100# and the zabbix_server end should be kept to one, such as: (A)
include= /usr/local/zabbix/etc/zabbix_agentd.conf.d/
Unsafeuserparameters=1
userparameter=mysql.version,mysql-v
userparameter=mysql.status[*],/usr/local/zabbix/scripts/chk_mysql.sh
$ userparamete
"110:mysql.status[bytes_sent]" changed:received value [mysqladmin: [Warning ] Using a password on the command line interface can being insecure.8991074] is isn't suitable for value type [Numeric (float)]Hint parameter does not matchAbove the Zabbix-server server, when using the Zabbix-get command[Email protected] ~]#/usr/local/zabbix/bin/zabbix_get-s 192.168.1.110-p10050-k Mysql.status[uptime]Mysqladmin: [
add MySQL account, (my database here is installed with Yum)MariaDB [(None)]> GRANT process,super,replication CLIENT on * * to [e-mail protected] ' 127.0.0.1 ' identified by ' Xiaozhan G ';6. Next, prepare MySQL monitor for running information, and need to prepare new MySQL monitoring script chk_mysql.sh. (name to match the name of the script path added to the Zabbix client)[Email protected] scripts]# mkdir/usr/local/zabbix/scripts/[Email protected] scripts]# cat/usr/local/zabbix/scripts/chk_mys
by using. as the hostname.
The error (2002) Can't connect... normally means that there is no MySQL server running on the system or that you are using an incorrect Unix socket filename or TCP/IP port number when trying to connect to the server.
Start by checking whether there is a process named mysqld running on your server host. (Use ps xa | grep mysqld on Unix or the Task Manager on Windows .) if there is no such process, you should start the server. see Section 2.9.2.3, "Starting and Troubles
Secrets 1. MySQL common command createdatabasename; Create Database usedatabasename; select database dropdatabasename to delete database directly, no reminder
Http://news.newhua.com/news1/program_database/2009/217/0921715343537K7H7IDI2CCI 09JCI1DK8FJ4B07B3A04219G 561C3JAB.html 1, MySQL Common commands create database name; create database use databasename; choose database drop database name to delete the database directly, Do not remind
Http://news.newhua.com/news1/program_database/2009/217/0
.
========================================================== =====
How to change the password in the MYSQL database
First, you must declare that, in most cases, modifying MySQL requires the root permission in mysql. Therefore, you cannot change the password unless you request the administrator.
Method 1
Use phpmyadmin, which is the simplest. modify the user table of the mysql database, but do not forget to use the PASSWORD function.
Method 2
Use mysqladmin
Comments: Several methods to crack the mysql root PASSWORD circulating on the Internet: Method 1: Use phpmyadmin, which is the simplest. Modify the user table of the mysql database, but do not forget to use the PASSWORD function. Method 2: Use mysqladmin, which is a special case stated above. Mysqladmin-u root-p password mypasswd input several methods circulating on the Internet to crack the mysql root pass
MySQL-server-5.1.7-0.i386.rpm MySQL-client-5.1.7-0.i386.rpmReminder:If the followingError: Failed dependencies:Perl (DBI) is needed by MySQL-server-5.1.16-0.glibc23.i386Please useInstall Yum install Perl-DBI. Of course, you need to try different releases.The following information is displayed.Warning: MySQL-server-5.1.7-0.i386.rpmSignature: nokey, key ID 5072e1f5Preparing... ######################################## ### [100%]1: mysql-server ##################################### ###### [100%]...
Welcome to the Linux community forum and interact with 2 million technical staff to enter the methods for modifying the mysql user password. Summary 1. method 1: run the mysqladmin command to change the root password. The command is applicable to remembering the old root password and modifying the root password Syntax: mysqladmin-u username-p old password new password example: #
Mysqladmin is an important MySQL client. It is most commonly used to shut down the database. In addition, this command can also understand the MySQL running status, process information, and process killing. This article describes how to use mysqladminextended-status (replace ext because there is no ambiguity) to understand the running status of MySQL. 1. Use-r
Mysqladmin is an important MySQL client. It is
When installing mysql, the mysqladminpassword Command reports an error. when installing mysql, the mysqladminpassword Command reports an error-bash: mysqladmin: commandnotfoundlocatemysqladmin reports an error-bash: mysqladmin: commandnotfound. how can this problem be solved? -When mysql is installed, the mysqladmin password 'password' Command reports an error.
When installing mysql, the mysqladminpassword Command reports an error. when installing mysql, the mysqladminpassword Command reports an error-bash: mysqladmin: commandnotfoundlocatemysqladmin reports an error-bash: mysqladmin: commandnotfound. how can this problem be solved? -When mysql is installed, the mysqladmin password 'password' Command reports an error.
Method 1
Use phpmyadmin, which is the simplest. Modify the user table of the mysql database, but do not forget to use the PASSWORD function.
Method 2
Use mysqladmin, which is a special case stated above.
Mysqladmin-u root-p password mypasswd
After entering this command, you need to enter the original root password, and then the root password will be changed to mypasswd.
Change the root in the command to you
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.