Summary of solutions for Tableisreadonly in mysql bitsCN.com if it is a database in use, some class problems suddenly occur.
Run the following command in Linux. of course, you need to find your mysql directory.
Linux
/Usr/local/mysql/bin/mysqladmin-u root-p flush-tables
Windows
Run lush-tables in cmd.
You can also directly modify the repair table in phpmyadm
Easy to learn and use MySQL: MYSQL is easy to learn and use with a wide range of technical documents. These two factors are widely used. However, with the rapid development of MySQL, even a veteran of MySQL sometimes lamented the functionality of the software. This article will introduce you to these unknown features.
How to disable MySQL logs, delete mysql logs, and disable mysql Log DeletionBy default, log files are enabled for MySQL installed in the one-click LNMP installation package,If data operations are frequent, a large number of logs are generated,Generate a mysql-bin.0000 * simi
This article mainly introduces how to use cold backup in the real environment of MySQL backup and recovery. if you need it, refer to the previous article (cold backup of MySQL backup and recovery. However, there is a problem. The data files we store are stored on the current local disk. if this disk fails, the data we store will not be lost, so that backup data will not suffer a loss, work hard. Therefore,
Prevention and repair of MySQL table corruption 1. analysis of causes of table corruption
The following are common causes of mysql table destruction:
1. data files are damaged due to a sudden power failure on the server.
2. force shutdown without shutting down the mysql service first.
3. the mysqld process is killed when writing a table.
4. when myisamchk is used
In-depth explanation of mysql foreign key association issues
BitsCN.com continues to read the book "mysql database development" recommended by the instructor. I encountered a problem when I saw the foreign key association problem with the innodb database, in the book, you can modify the parent table and synchronize it to the foreign key of the sub-table. However, you cannot perform this experiment.
[SQL] MySQL uses mysqlbinlog for incremental backup and recovery details bitsCN.com
[SQL] MySQL uses mysqlbinlog for incremental backup and recovery
Incremental Backup process
(1) configure the My. cnf file
(Configure the my. ini file in Windows) to enable binary backup:
[SQL]
Log-bin = D:/Program Files (x86)/MySQL/mylog/juelog
Specify the file to which the b
Mysql entry-level series: the first release of MySQL database service to be updated is version 3.11.1. Currently, the 3.22 series stable edition and 3.23 series development edition are popular. The stable version number is always smaller than the development version number. After 3.23 is stable, 3.24 will be used as the development series. MySQL developers seem t
Solve the problem that mysql service cannot be started and Mysql is reinstalled in the last step. mysql step
Mysql services are often the most troublesome and often need to be reinstalled. Many people cannot unload the residual files and cannot install them. This problem occurs next time. When I reinstalled
Mysql database master-slave experience management mysql master-slave for more than two years, management of more than 200 groups of mysql master-slave, involving almost all versions of master-slave, this blog is summative, part of which is from the network, most of them are based on their own management experiences and experiences. I have sorted out and shared th
First, the environment is windows + vs2008, Mysql database has been installed, before use, you need to configure the project properties, add include directory
D: \ Program Files \ MySQL Server 5.6 \ include (Mysql installation directory), add D: \ Program Files \ MySQL Server 5.6 \ lib to the additional library directo
After I deleted the original mysql4.0 file in s9, I installed a new mysql5.0 file. During the startup process, I reported an error and failed to start the file. I checked the old post in the group and did not provide a specific description.
After I deleted the original mysql4.0 file in s9, I installed a new mysql5.0 file. During the startup process, I reported an error and failed to start the file. I checked the old post in the group and did not provide a specific description.
Records in the er
In Linux, mysql cannot find the mysql. sock file. Solution: bitsCN.com
Mysql cannot be found in Linux. solution to the sock File: by default, mysql compilation and installation may fail to connect to the mysq server after installation. the ERROR "ERROR 2002 (HY000 ): can't connect to local
MySql official manual Study Notes 3-MySql stored procedure introduction bitsCN.com
SELECT
Create procedure sp1 (x VARCHAR (5 ))//Create storage process
BEGIN
DECLARE xname VARCHAR (5) DEFAULT 'Bob ';//Declare local variables
DECLARE newname VARCHAR (5 );
DECLARE xid INT;
SELECT xname, id INTO newname, xid//Store the property value to the variable.
FROM table1 WHERE xname = xname;
SELECT newname;
END;
The
Getting started with MySQL
MySQL quick start
1. connect to MySql
Use the installed MySQLl command line. by default, the user is the root user. here, I use the dos command line to log on.
1. connect to MySQL on the local machine
Format: mysql-u user name-p user password
Exa
Analysis of using MySQL to create databases and database tables bitsCN.com
1. use the SHOW statement to find out the current database on the server: mysql> show databases; + ---------- + | Database | + ---------- + | mysql | test | + ---------- + 3 rows in set (0.00 sec) 2. CREATE a DATABASE abccs mysql> CREATE Databas
MYSQL Tutorial: After MySQL is installed, many useful programs are generated in the MySQL installation directory.
Libmysqld-embedded MySQL server, which cannot run independently. it is a function library that can be embedded into other programs to enable the functions of the MyS
Processing the MySql-bin.0000X log file bitsCN.com for Mysql
After mysql was running for a while, there was a pile of mysql-bin.000 like *** in the mysql directory, which was arranged from the mysql-bin.000001 and took up a lot o
Bin-log where to start the log content, please send me ";4),Slave sql_thread detected the new content in Relay-log, will immediately parse the contents of Relay-log into The Master side performs the actual execution of those executable content and puts it back on the local computer. Summary: The most important thing about MySQL master-slave architecture is the Bin_log and Relay_log logs, the global transaction IDOne,
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.