MySQL database management database startup and shutdown, security, access control and permissions, database backup and recovery, import and export records the duties of the database administrator
Server startup and shutdown
User account
This afternoon, the website continued to encounter database connection failures. It would be better to restart mysql, but after a while, the database connection failure may occur. Check monitorix and find an exception. Ask tech experts for help. The
[1] Enter mysql installation directory mysqlbin [2] Open my. ini: Insert a line "federated" after [mysqld], save [3], restart mysql, enter mysql, and enter showengines. If FEDERATED is displayed after YES, it is enabled successfully. Note: federated
Start MySQL service sudoLibraryStartupItemsMySQLCOMMySQLCOMstart stop MySQL service sudoLibraryStartupItemsMySQLCOMMySQLCOMstop restart MySQL service sudoLibraryStartupItemsMySQLCOMMySQLCOMrestart
Start MySQL service
Example of Master-Slave Data Synchronization for Mysql Server: How can I synchronize data from A Master server to A Slave server by using server A as the Master server (Master) and server B1 and server B2 as the Slave server (Slave, let's take a
In Centos linux, mysql forgets the password of the root user: Step 1: (stop running mysql) [root @ CentOs5 ~] # ServicemysqldstopStoppingMySQL: [OK] Step 2: Use the "-- skip-grant-tables" parameter to restart mysql [root @ CentOs5 ~] # Mysql
Centos
Several methods to crack the root password of a MySQL database:
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
Unixlinux 1: First stop mysqld, it is best to kill killallmysqld 2: Start mysql, but skip the permission table usrlocalmysqlbinmysqld_safe -- skip-grant-tables 3: Go to mysql, and change the password usrlocalmysqlbinmysql-urootmysqlusemysql;
Install and configure the LAMP server in CentOS 6.2 (Apache + PHP5 + MySQL)Preparations: 1. configure the firewall, enable port 80 and port 3306 VI/etc/sysconfig/iptables-A input-M state -- state new-m tcp-p tcp -- dport 80-J accept (allow port 80
Original address: http://www.phpwind.net/simple/index.php? T255122.html & t = 1
MySQL errors and solutions (continuously improving)
Note: If a database error occurs, modify the corresponding code and restart MySQL. If you encounter a MySQL problem,
Basically, mysql has two major problems.1. There is no problem starting mysql for the first time. After you perform some operations on mysql, especially after deleting some accounts in mysql, you will encounter such problems when you restart mysql.#/
1. commands for starting Mysql in Linux:/Etc/init. d/mysql start2. Close the Mysql command:/Etc/init. d/mysql shutdown3. Restart the Mysql command:/Etc/init. d/mysql restart4. Create a user:Grant permissions (all indicates all permissions) on
These days, I have been working on big jobs in project management. web programs often encounter this problem, but it will be fine again later. At first I suspected that the session was not closed, but then I checked the code, the main cause is the
Set two-way MySQL Data Synchronization
I. Prepare serversBecause the binlog formats of different MySQL versions (Binary logs) may be different, the best combination is that the MySQL version of the Master is the same or lower than the Slave version,
Ubuntu lamp (apache + mysql + php) Environment setup I. Environment installation 1. install apache2 sudo apt-get install apache2 and open http: // localhost/or http: // 127.0.0.1 in the browser! Verify that apache is successfully installed. Www.2cto.
Preparation:
1. configure the firewall and enable port 80 and port 3306.Vi/etc/sysconfig/iptables-A input-m state -- state NEW-m tcp-p tcp -- dport 80-j ACCEPT # Allow port 80 to pass the Firewall-A input-m state -- state NEW-m tcp-p tcp -- dport 330
1. How to enable slow query for MySQL in Windows:
The configuration file of MySQL in Windows is usually my. ini, and the path of my path is c: \ mysql \ My. ini. You can find
Compile my. ini and add it under [mysqld]
Log-Slow-queries= D: \ mysql \
Other operations after migration:Disabled functions in PHP The code is as follows:Copy code Example, php_sapi_name, example, example, php_uname, exec, system, passthru, shell_exec, example, example, proc_close, proc_open, ini_alter, dl, example,
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.