The following script uses the NAMP scanning tool. Therefore, if the Nmap scanning tool is not installed in the system, you must first install the tool.
Script functions:
First, check whether the MySQL port exists normally. If the port does not
1. Install JDK first. After downloading and installing JDK, you 'd better add java_home to the system variable.
2. Download JBoss (J2EE container). I downloaded jboss4.2.1.ga. The jboss4.2.3.ga that was downloaded first throws an exception and has
Run mysqld directlyProgramThe method to start the MySQL service is rare. The mysqld_safe script will continue to monitor its running status after the MySQL server is started and restart it when it crashes. Using the mysqld_safe script to start a
Recently, the database has encountered abnormal pauses and blocking, and a large number of connections similar to the following are found through show processlist:
| 592 | unauthenticated user | 192.168.3.20: 35320 | null | connect | login | null ||
Start: Net start MySQL;Enter: mysql-u root-P/MySQL-H localhost-u root-P databasename;List databases: Show databases;Select Database: Use databasename;List tables: show tables;Show columns from tablename;Create a database: Source
Detailed process of installing, configuring, and detaching MySQL through RPM packages.
Take MySQL-server-4.0.14-0.i386.rpm as an example, put it under the/Data Directory
CD/Data
Rpm-IVH MySQL-server-4.0.14-0.i386.rpm
After installation is
I. Prepare servers
Because 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, the master version must not be higher
Are new users like me worried about not starting services after installation? The following describes the simplest method. You can solve the auto-start problems of Apache, MySQL, Samba, SVN, and other services at startup:
1. Edit the RC. Local file#
Applications (such as PHP) execute MySQL statements in batches for a long time. Execute an SQL statement, but the SQL statement is too large or the statement contains blob or longblob fields. For example, processing image data. MySQL server has gone
Http://aronlulu.iteye.com/blog/790641
MySQL is widely used in the Internet. A large part of the reason is its replication mechanism, which is simple and practical. It can easily improve the performance of several PC hosts and is a must-have solution
Install and configure MySQL.
MySQL CRUD (add, delete, modify, and query)
List all databases
show databases;
Create a database
-- Create database mydb1 using MySQL Default Configuration; -- create database mydb2
Note: This assumes you have samba, MySQL and pam_mysql already installed and running on FreeBSD 4.0 or greater The following describes how to setup samba, Pam, and MySQL such that samba users are authenticated through MySQL using PAM.You can obtain
Method 1:Under/usr/local/MySQL/bin:./Mysqladmin-u Root Password 'new _ password'This method is usually used for installation.
2. Change the password of another user as the root user:
Mysql> set password for 'root' @ 'localhost' = PASSWORD ('abc ');
MySQL prefix indexes can effectively reduce the size of index files and increase the indexing speed. However, prefix indexes also have their disadvantages: MySQL cannot use prefix indexes in order by or group by, or use them as overwrite indexes ).
Xtrabackup is an open-source tool used to back up the InnoDB database of MySQL.
New features of this version.
1. This version of xtrabackup percona fully supports the new MySQL 5.6 feature.
2. xtrabackup percona supports InnoDB buffer pool
MySQL database errors caused by power failure or abnormal shutdown are very common problems. There are two methods: one is to use the check table and repair table SQL statements of MySQL, and the other is to use multiple myisamchk and isamchk Data
MySQL configuration principles rational configuration of MySQL the most reasonable use of MySQL for MyISAM or InnoDB for different application conditions rational configuration for my. CNFConfiguration, followed by reasonable settings for servers
Index is the key to quick search. The establishment of MySQL indexes is very important for the efficient operation of MySQL. The following describes several common MySQL index types.
Index fields in database tables can greatly improve the query
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