If you have never set a root user password for MySQL, the server does not need a password for connection as the root user. However, we recommend that you set a password for each account.
If you have previously set the root user password but forgot
Su1. Install SSH (required)
Sudo apt-Get Install SSH
2. Install MySQL (although the latest version is 5.1, only MySQL 5.0 can be installed)
Sudo apt-Get install mysql-server-5.0
3. install Apache
Sudo apt-Get install apache2
4. install
1. Open the backed up SQL text in notepad to ensure that the data in the file is properly displayed. 2. view the storage format of this text, typically ANSI (Chinese generally GBK or gb2312) and UTF-8.3. if the file storage format is ANSI, add the
Primary Key Create Table Feng (
Teamno int not null, playerno int not null, Division char (6) Not null,
Primary Key (teamno) )
Create Table Feng ( Teamno int not null
Primary Key , Playerno int not null, Division char (6) Not null,) composite
ManyProgramWhen developers use some front-end database development tools (such as PowerBuilder and Delphi) to develop database applications, they only pay attention to the gorgeous user interface and do not pay attention to the efficiency of query
First, start and stop the MySQL Service
Net stop MySQL
Net start MySQL
Second, log on to MySQL
Syntax: mysql-u user name-P User Password
Enter the mysql-uroot-p command, press enter and prompt you to enter the password, enter 12345, and
You can check it later.
I,MySQLGet current date and time
Now (): Obtain the current date + time (date + time) function:
Mysql> select now ();
+ --------------------- +
| Now () |
+ --------------------- +
| 10:26:23 |
+ ----------
From: http://www.linuxidc.com/Linux/2008-08/15068.htm
1. KeywordsAuto_increment
2. Auto-increment usageExample:Create Table animals (ID mediumint not null auto_increment,Name char (30) not null,Primary Key (ID ));
3. Auto-Increment
Q: How to
Http://www.111cn.net/database/110/a7a8504655fc25e1dd63dbf06bd3c716.htm
Method 1
PhpMyAdmin is the simplest. Modify the user table of the MySQL database,
But don't forget to use the password function.
Method 2
Use
MySQL Error
Code List:
1005: An error occurred while creating the table.
1006: database creation failed
1007: the database already exists. An error occurred while creating the database.
1008: the database does not exist. An error occurred
Violent Field Length
Order by num /*
Matching Field
And 1 = 1 Union select 1, 2, 4, 5 ....... N /*
Violent field location
And 1 = 2 Union select 1, 2, 3, 4, 5 ..... N /*
Using built-in function brute-force database information
Test Table Structure:
CREATE TABLE `a` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `cnt` INT(11) NULL DEFAULT NULL,PRIMARY KEY (`id`))COLLATE='utf8_general_ci'ENGINE=MyISAMROW_FORMAT=DEFAULT
Several permissions related to stored
The system is not big. I took three steps to complete the system.
• Database Design
• System Framework Design
• Front-end beautification
Database Design Three tables are designed: the voting result statistical table (count_voting), the voter record
Comparison of not in, JOIN, is null, not exists Efficiency
Statement 1: select count (*) from A where A. a not in (select a from B)
Statement 2: select count (*) from A left join B on A. a = B. a where B. a is null
Statement 3: select count (*)
Step 1-install MySQL Download this server, MySQL GUI tool, and MySQL ODBC driver from http://dev.mysql.com/downloads. You can select 5.0, 5.1, or 6.0 servers. Then install them.Precautions during installation:Your Firewall should be set to allow
MySQL ODBC interface is implemented by installing the MyODBC driver, which is cross-platform. For Linux and other unix operating systems, install the third-party ODBC standard support platform, such as iodbc.Simple ASP Sample Code:Dim SQL, mysqlSet
Content Abstract: some experience in using MySQL services, mainly from the following aspects of MySQL service planning and design. For high-load sites, PHP and MySQL running together (or any application and database running together planning) is the
I suddenly received an alarm from MySQL. I crashed from the database and restarted continuously. I opened the error log and found that a table was broken. If the innodb table is damaged, you cannot use repair table or other commands to repair myisam.
1. Create a server user: The main task of user management is to create a legal user account, set and manage user passwords, modify user account attributes, and delete obsolete user accounts when necessary.1) Add a new userIn Linux, only the root
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