After research
After MySQL sets the encoding gb2312,
In navicat, select the MySQL Default Character Set, select the default character set when creating the database, and create the varchar field of the table (or its
Other character
Command for backing up MySQL database
Mysqldump-hhostname-uusername-ppassword databasename> backupfile. SQL
Back up the MySQL database in the format of a table with deletionBacking up a MySQL database is in the format of deleting a table. This
I don't know when to start.
The MySQL service on the computer cannot be started automatically.
Every time you want to use a data warehouse, you must run mysqld-nt.exe in the bindirectory.
Or at the command prompt, run the following command:
Very
I. MySQL index type
MySQL currently only supports four types of indexes: Full-text, B-tree, hash, and R-tree.
B-tree indexes should be the most extensive indexes in MySQL, except for archive, which is supported by almost all storage engines.
1. Full-
MySQL Server Architecture logic diagram
Exclusive lock
To solve concurrency, you need to use locks, including shared locks and exclusive locks, that is, read locks and write locks ).
Read locks are shared. Multiple users can read the same
It seems that the data source configuration of tomcat6 is relatively simple, but if you set it in the previous version, there will be many problems, such:
Name JDBC is not bound in this context
Or cannot create JDBC driver of class ''for connect URL
Invalid connection using Apache common DBCP + common pool + MySql
Throwable occurred: Org. springframework. transaction. cannotcreatetransactionexception: cocould not open JDBC connection for transaction; Nested exception is com. mySQL. JDBC.
We need to sort out some script programs near the end of the year. If we find a MySQL database backup script, we can share with you the idea that the environment is ubuntu10.04server.
Obtain the names of all databases on the MySQL server and
[Warn] housekeeper 11:52:17, 781 Org. logicalcobwebs. proxool. mysql-#0005 was active for 3634735 milliseconds and has been removed automaticaly. the thread responsible was named 'HTTP-7085-processor22 ', and the last SQL it stored med is 'insert
Finally solved last week's legacy MySQL can not start the problem, the reason is that the previous installation of two MySQL, and the path is different, there are other people's detailed solution:
I. connect to MySQL and some basic commands 1. connection to MySQL format: mysql-H host address-u user name-P user password for example: connect to MySQL on the local machine: mysql-uroot-p123456 to connect to the MySQL database on the remote host:
/* Parameter: Start ID, customer ID, number of records, initial user name */Delimiter $Create procedure batchinsert (in init int, in CID int, in loops int, in username varchar (64 ))BeginDeclare myid int;Declare myname varchar (64 );Declare num
When writing a database program, we often need to obtain the maximum number of numbers in a table,
Generally, you can obtain the ID of the inserted data by using select max (ID) from table.But in the case of multiple threads, it won't work.
The
Install mysql-Python under MAC, download source code in: http://sourceforge.net/projects/mysql-python/files? Source = navbar
Decompress the package and run Python setup. py build.
The following error is reported:
SH: mysql_config: Command not
Let you quickly review the notes of the statement.
Create Table users (Username varchar (20) primary key,Userpwd varchar (20))
Alter table users add age int
Insert into Stu (sname) values ('sdfdsfdsfeeeeee ')Update CJ set Cj = 60 Where sid =
Apache:If the RPM package is used for installation, the installation path should be in the/etc/httpd directory.Apache configuration file:/etc/httpd/CONF/httpd. confApache module path:/usr/sbin/apachectlWeb directory:/var/www/htmlIf source code is
In large Web applications, databases often become a bottleneck for concurrent access. to effectively solve the bottleneck of concurrent access, the master-slave mode of multiple databases is used to increase the concurrent access to the web.The
The most comprehensive tutorial: MySQL 5.1 Reference Manual
Below are some common commands.
Note that all MySQL commands after entering MySQL end with ";"; otherwise, MySQL remains in the waiting state.
First,MySQLLogin and exit
Format: shell> mysql-
You need to make the following changes first: (if you are in a ubuntu (Debian) system, you need to make a slight change, as shown below:
1)Init. d path:Originally:/Etc/rc. d/init. d/mysqldNow:/Etc/init. d/mysqld
2)Originally:Chkconfig -- add
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