Common commands:
Show databases; show all databases
Use pdns; select the pdns Library
Show tables; view all table names in the database
Select * From domains; query the content in the domians table
Drop table domains; Delete the domains
Keywords: Install the latest Apache + PHP + MySQL guide in Windows
Install the latest Apache + PHP + MySQL guide in Windows
1. installation environmentThe latest versions of Windows XP, Apache, PHP, and MySQL are available on the official
Install my search results online
Run
Code: Sudo gedit/etc/MySQL/My. CNF
Set the default encoding to utf8.Code:[Client]Port = 3306Socket =/var/run/mysqld. Sock# The default character set is utf8.Default-character-set = utf8Code:[Mysqld]## * Basic
(Note: The following addresses can only be downloaded using thunder. The following content is for reference only and there is no security configuration information)========================================================== ===========================
1. Install with yum
Yum install mysql-Server# Yum-y install PHP-MySQL
2. Change the password
Vim/etc/My. CNF[Mysqld]Add the following here: Set the default value to utf8.Default-character-set = utf8
Add the following statement at the end of
Recently, I have encountered remote MySQL permissions.
A few people have asked me the same question recently. I installed MySQL and then used Telnet IP 3306. The port then reported bhost '123. 0.0.1 'is not allowed to connect to this MySQL
1. Start
After MySQL is installed, run the following command to start MySql in the/etc/init. d directory.
[Root @ test1 init. d] #/etc/init. d/MySQL start
2. Stop/Usr/bin/mysqladmin-u root-P Shutdown
3. Automatic Start1) Check whether MySQL is
Add or modify the following in my. CNF:Code:[Client]Default-character-set = utf8[Mysqld]Default-character-set = utf8
We recommend that the encoding on the webpage be consistent with the encoding on the database. If both are utf8, set them to utf8.
Block Definition
[Label:] BeginVariable and conditionDeclarationsCursor declarationsHandler declarationsProgram codeEnd [label];
You can use leave [label] to jump out of a block.
Example:
mysql> Create procedure
If your server is Windows XP/2000/2003/NT, you can use this method to retrieve the lost MySQL super administrator root password.
1. Stop mysql. Open the DOS window in cmd and enter net stop MySQL.
2. In the CMD command line window, enter the
Copy the file from .tar.gz to the/home/software/Apache-activemq directory and run the following command:
# Cd/home/software/Apache-activemq
# Tar zxvf apache-activemq-5.5.0-bin .tar.gz
# Cp-A apache-activemq-5.5.0/usr/local/activemq
# Cd/
MySQL has three types of columns: Numbers, strings, and dates.
Numeric column type
The number column type is used to store various numeric data, such as price, age, or quantity. There are two types of numeric columns: integer and floating point. All
MySQL common error messages and Solutions
130: the file format is incorrect. (The error is not clear yet)
145: the file cannot be opened.
1005: An error occurred while creating the table.
1006: An error occurred while creating the database.
1007:
MySQL 4.1 Character Set Support has two aspects: Character set and Collation ). The support for character sets is refined to four levels: server, database, table, and connection ). The following sections decode the server code, database code, data
From http://www.cnblogs.com/pricks
"
MySQL 4.1 Character Set Support has two aspects: Character set and Collation ). The support for character sets is refined to four levels: server, database, table, and connection ). The following sections decode
Document directory
B-Clone Database Table with all data
MySQL is a programming language based on C and C ++ later than mySQL 1995. ITA is the most commonly used open source database today, because of the great verstality applied online. MySQL
Methods for changing the root password of MySQL
I accidentally typed the password when setting up a mysql database today, but it was not the one I wanted. The following method is obtained when multiple
Copyright Notice: During reprinting, please use hyperlinks to indicate the original source and author information of the article and this statementHttp://mobile2008.blogbus.com/logs/28725962.html
Three MySQL installation methods:
1. install sudo apt-get install mysql-server from the Internet
Note: We recommend that you change cn in/etc/apt/source. list to us. The servers in the United States are much faster than those in China. Modify the
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