First, go to the MySQL Command Line
1. Add User Permissions-indicates that a user with both the user name and password is added to sa can log on to the LAN and have all simple permissions for MySQL except grant option.
Grant all on *. * To 'sa '@ '
1. Change the table. Use MySQL management tools, such as sqlyog Enterprise It may be that your account is not allowed to log on remotely, but only on localhost. At this time, you only need the computer on localhost.Use MySQL management
Write MySQL today and use limit in subqueries when there is a requirement. If you are depressed, you cannot go through it. But you only need to convert it. It is a tragedy.
Update TBL
Set isoption = 1 where userguid = 'sss' PID in (select PID from
Here the mysql version is selected as the mysql-5.1.41-win32.msi, installed in the C: \ mysql directory.
The following is the configuration of mysqll:Open the c: \ windows \ PHP. ini file;Search; Extension = php_mysql.dll, remove ';Search;
The system crontab is used to regularly execute Backup files and save the backup results by date to achieve the purpose of backup.1. Create the path to save the backup file/mysqldata # mkdir/mysqldata 2. Create the/usr/sbin/bakmysql file #
Describe table_name; this command is used to display the structure of a table + ---------- + --------- + ------ + ----- + --------- + ------- + | FIELD | type | null | key | default | extra | + ---------- + ----------- + ------ + ----- + --------- +
The table structure is as follows:Mysql> select * from test;+ ---- + ------- +| ID | Name |+ ---- + ------- +| 1 | test1 || 2 | Test2 || 3 | test3 || 4 | test4 || 5 | test5 |+ ---- + ------- +
Run the following SQL:Mysql> select * from test where
This article summarizes the sorting methods used in recent projects. If you need to reprint them, please noteArticleSource
1. sphsort sorting
Yii: Import ('ext. sphinxclient '); $ sphinxapi = new sphinxclient (); $ sphinxapi->
Summary of common MySQL commands
1: Use the show statement to find out the current database on the server:Mysql> show databases;2. Create a database named mysqldataMysql> Create Database mysqldata;3: select the database you createdMysql> Use
Due to work needs, recently I was assigned to the system O & M department of the company for a while, during which I met Nagios, an open source system monitoring software. But before I got into touch with the system O & M work, I really didn't know
Common MySQL table operations
View column: desc table name; Modify table Name: alter table t_book rename to bbb; add column: alter table name add column name varchar (30); delete column: alter table Name drop column name; Modify column name MySQL:
1. In the control panel, delete mysql first.
2. Delete the mysql directory under drive C: \ Program Files.
3. delete the directory if you have another disk. delete the empty directory. delete the ib_logfile0 and ib_logfile1 files in the C:/Documents
When I was learning new technologies, it was really depressing to configure the environment. But fortunately, many of my friends on the Internet are very helpful to me.
1. install and configure APACHE (install it to D: \ phpapache \ Apache2.2)1. It
MySQL uses the Parameter-based code and always prompts: "Column 'column name' cannot be null"
MySQL uses the Parameter-based code and always prompts: "Column 'column name' cannot be null"
Solution 1: add an oldsyntax = true to the connection
1. ########## how to obtain the total number of rows obtained from the last query ########
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Mysql> select SQL _CALC_FOUND_ROWS * from _ table _ limit 0,
The parent category contains its subcategories. In a data table, we use the left value and right value representing the node's nested relationship to represent the nested set model.The data layering feature. We use lft and rgt to replace left and
Environment:
1. Versions of mysql5.0 or above that support stored procedures
2. Install MySQL-python, which currently supports 2.x
Steps:
I. Database preparation
1. Create a table
CREATE TABLE `Account` (`id` BIGINT(20) NOT NULL
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.